You are here

public static function SassExtentionsCompassFunctionsColourStops::grad_end_position in Sassy 7

File

phamlp/sass/extensions/compass/functions/colourStops.php, line 119

Class

SassExtentionsCompassFunctionsColourStops
Compass extension SassScript colour stops functions class. A collection of functions for use in SassSCript. @package PHamlP @subpackage Sass.extensions.compass.functions

Code

public static function grad_end_position($colourList, $radial = null) {
  SassLiteral::assertType($colourList, 'CompassList');
  if (is_null($radial)) {
    $radial = new SassBoolean(false);
  }
  else {
    SassLiteral::assertType($radial, 'SassBoolean');
  }
  return self::grad_position($colourList, new SassNumber(sizeof($colourList->values)), new SassNumber(100), $radial);
}