ColorSelection.paletteToString

Encodes a palette as a string, useful for persistent storage.

class ColorSelection
static
string
paletteToString

Parameters

colors Color

an array of colors. [array length=n_colors]

nColors int

length of the array.

Return Value

Type: string

allocated string encoding the palette.

Meta