Base class for palettes, such as color and size palettes, that map from
interpolated scale values into visual properties
size:int [read-only]
The number of values in the palette.
Implementation
public function get size():int
protected var _values:Array Array of palette values.
values:Array [read-write]
Array of palette values.
Implementation
public function get values():Array
public function set values(value:Array):void
public function getValue(f:Number):Object
Retrieves the palette value corresponding to the input interpolation
fraction.
Parameters
| f:Number — an interpolation fraction
|
Returns
| Object — the palette value corresponding to the input fraction
|