Colors
A collection of colors.
Instance
Read Only
Number length
The number of objects in the collection.
Methods
Number count()
Displays the number of elements in the Color.
Color add( Object withProperties )
Creates a new Color.
Parameters
Color item( Mixed index )
Returns the Color with the specified index or name.
Parameters
Color itemByName( String name )
Returns the Color with the specified name.
Parameters
Color itemByID( Number id )
Returns the Color with the specified ID.
Parameters
Color itemByRange( Mixed from, Mixed to )
Returns the Colors within the specified range.
Parameters
Color firstItem()
Returns the first Color in the collection.
Color lastItem()
Returns the last Color in the collection.
Color middleItem()
Returns the middle Color in the collection.
Color previousItem( Color obj )
Returns the Color with the index previous to the specified index.
Parameters
Color nextItem( Color obj )
Returns the Color whose index follows the specified Color in the collection.
Parameters
Color anyItem()
Returns any Color in the collection.
Color everyItem()
Returns every Color in the collection.
String toSource()
Generates a string which, if executed, will return the Color.
Color []( Number index )
Returns the Color with the specified index.