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, RGB(255, 0, 0));

Definition at line 109 of file vga2controller.cpp.