Terminal.setColors

palette specifies the new values for the 256 palette colors: 8 standard colors, their 8 bright counterparts, 6x6x6 color cube, and 24 grayscale colors. Omitted entries will default to a hardcoded value.

palette_size must be 0, 8, 16, 232 or 256.

If foreground is NULL and palette_size is greater than 0, the new foreground color is taken from palette[7]. If background is NULL and palette_size is greater than 0, the new background color is taken from palette[0].

class Terminal
void
setColors

Parameters

foreground RGBA

the new foreground color, or NULL

background RGBA

the new background color, or NULL

palette RGBA[]

the color palette