Skip to content

Color Palette

Mikkel102454 edited this page Oct 6, 2026 · 4 revisions

Color palette

Image index Name Meaning
0 black Black
1 white White
2 yellow Yellow
3 red Red
4 transparent Default image skip index

Primitive color arguments accept only black, white, yellow, and red. transparent is not registered by the primitive color parser.

For Draw Text, the background can be transparent; span colors should be one of the four opaque colors. For Draw Image, transparency is selected by an integer palette index, default 4. A skipped pixel preserves existing framebuffer content. There is no partial alpha blending on the device.

Indices 5–15 are not defined drawing colors. Four-bit storage capacity does not mean the display has 16 colors. Do not use undefined indices as visible pixels.

Implementation references

Clone this wiki locally