FabGL
ESP32 Display Controller and Graphics Library

◆ setPenColor() [2/3]

void setPenColor ( Color  color)

Sets pen (foreground) color using a color name.

Parameters
colorColor name.

Example:

 // Set white pen
 Canvas.setPenColor(Color::BrightWhite);

Definition at line 179 of file canvas.cpp.