FabGL
ESP32 Display Controller and Graphics Library

◆ setPaletteItem()

void setPaletteItem ( int  index,
RGB888 const &  color 
)

Determines color of specified palette item.

Parameters
indexPalette item (0..1)
colorColor to assign to this item

Example:

// Color item 0 is pure Red
displayController.setPaletteItem(0, RGB888(255, 0, 0));

Definition at line 131 of file vga8controller.cpp.