FabGL
ESP32 Display Controller and Graphics Library

◆ setBrushColor() [3/3]

void setBrushColor ( uint8_t  red,
uint8_t  green,
uint8_t  blue 
)

Sets brush (background) color specifying color components.

Parameters
redRed color component. Minimum value is 0, maximum value is 1 with 8 colors and 3 with 64 colors.
greenGreen color component. Minimum value is 0, maximum value is 1 with 8 colors and 3 with 64 colors.
blueBlue color component. Minimum value is 0, maximum value is 1 with 8 colors and 3 with 64 colors.

Example:

// Set blue brush with 8 colors setup
Canvas.setBrushColor(0, 0, 1);

// Set blue brush with 64 colors setup
Canvas.setBrushColor(0, 0, 3);

Definition at line 214 of file canvas.cpp.