FabGL
ESP32 Display Controller and Graphics Library

◆ setPenColor() [1/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 187 of file canvas.cpp.