uint16_t color_t
An RGB565 color value. 5 bits red, 6 bits green, 5 bits blue.
Definition color.hpp:13
int16_t coord_t
A pixel coordinate on the screen. This can be negative or otherwise off-screen.
Definition coords.hpp:12
A basic 2D polygon.
Definition polygon.hpp:16
std::vector< Coords > points
The polygon vertices.
Definition polygon.hpp:22
color_t color
The color of the polygon.
Definition polygon.hpp:20
bool fill
Whether the shape is filled or just an outline.
Definition polygon.hpp:18
A polygon specialization for regular, convex polygons.
Definition regular_polygon.hpp:11
RegularPolygon(color_t color, int points, coord_t radius, bool fill=false, float angle=0)
Construct the polygon.