FabGL
ESP32 Display Controller and Graphics Library
|
void drawRectangle | ( | int | X1, |
int | Y1, | ||
int | X2, | ||
int | Y2 | ||
) |
Draws a rectangle using the current pen color.
X1 | Top left horizontal coordinate. |
Y1 | Top left vertical coordiante. |
X2 | Bottom right horizontal coordinate. |
Y2 | Bottom right vertical coordiante. |
Example:
// Paint a yellow rectangle Canvas.setPenColor(Color::BrightYellow); Canvas.drawRectangle(10, 10, 100, 100);
Definition at line 263 of file canvas.cpp.