Encodes a palette as a string, useful for persistent storage.
an array of colors. [array length=n_colors]
length of the array.
allocated string encoding the palette.
See Implementation
Encodes a palette as a string, useful for persistent storage.