FabGL
ESP32 Display Controller and Graphics Library

◆ fillRectangle() [2/2]

void fillRectangle ( Rect const &  rect)

Fills a rectangle using the current brush color.

Parameters
rectRectangle coordinates.

Example:

// Paint a filled yellow rectangle
Canvas.setBrushColor(Color::BrightYellow);
Canvas.fillRectangle(Rect(10, 10, 100, 100));

Definition at line 279 of file canvas.cpp.