FabGL
ESP32 Display Controller and Graphics Library
|
void setPenColor | ( | uint8_t | red, |
uint8_t | green, | ||
uint8_t | blue | ||
) |
Sets pen (foreground) color specifying color components.
red | Red color component. Minimum value is 0, maximum value is 1 with 8 colors and 3 with 64 colors. |
green | Green color component. Minimum value is 0, maximum value is 1 with 8 colors and 3 with 64 colors. |
blue | Blue color component. Minimum value is 0, maximum value is 1 with 8 colors and 3 with 64 colors. |
Example:
// Set white pen Canvas.setPenColor(255, 255, 255);
Definition at line 193 of file canvas.cpp.