Get a color components array
color color
(color color opacity)
Returns array with color components. Color can be either a name, an index to the current palette
or a collection of 3 or 4 components: {r g b}, {r g b opacity}.
Range of component values is from 0 (off) to 100 (full). Optional opacity value can be passed to the
instruction. It will be combined with the opacity of the color.
Example:
print color "red
print (color "blue 40)
for [c 600 603] [print color :c]
Output:
{100 0 0 100}
{0 0 100 40}
{54.9019607843137 100 19.6078431372549 100}
{55.2941176470588 100 19.6078431372549 100}
{55.2941176470588 100 19.2156862745098 100}
{55.6862745098039 100 19.2156862745098 100}
See also:
Table of Content