Equinox Online Help - Language Reference - A to Z

Home

ColourNumber, ColorNumber

Applies to
Syntax

ColourNumber (NameExpression)
ColorNumber (NameExpression)

Action[Function] Returns the index of a particular colour name.
ScopeUsable anywhere
Notes

This statement returns the index value of the colour whose name is supplied in NameExpression. All Equinox colour values are indexes into a palette stored with each application. Colour names are defined in the Colour Palette entry in the Property dialog.

CategoryFonts and Colours
See Also ChangePalette, ColourName_ColorName, FontHandle, FontName, FontNumber, PaletteRGB, RGB, RGBValues
Example

This line displays the palette index number associated with the colour descriptor "Blue Haze".

Print ColourNumber("Blue Haze")