GETCOLOR

This function returns the RGBA value of a single color in the color palette, or the values of multiple colors as an array. The function is used to pass colors from the Application Studio color palette to web extensions.

The color palette contains 64 colors in a grid of 8 rows and 8 columns. Each color in the palette is identified by an index number from 1 to 64. The index numbers increment from top to bottom and from left to right of the grid.

For each index parameter specified, GETCOLOR returns a color code.

Syntax

GETCOLOR(color_index {,color_index})

Example

This example returns 0, the code for Black:

=GETCOLOR(2)

This example returns the array #(0,255):

=GETCOLOR(2,3)

0 and 255 are the codes for Black and White.