Expand description

2D shapes rendering.

Functions

Draws a solid circle centered at [x, y] with a given radius r and color.

Draws a circle outline centered at [x, y] with a given radius, line thickness and color.

Draws an outlined solid hexagon centered at [x, y] with a radius size, outline thickness defined by border, orientation defined by vertical (when true, the hexagon points along the y axis), and colors for outline given by border_color and fill by fill_color.

Draws a line between points [x1, y1] and [x2, y2] with a given thickness and color.

Draws a solid regular polygon centered at [x, y] with a given number of sides, radius, clockwise rotation (in degrees) and color.

Draws a regular polygon outline centered at [x, y] with a given number of sides, radius, clockwise rotation (in degrees), line thickness, and color.

Draws a solid rectangle with its top-left corner at [x, y] with size [w, h] (width going to the right, height going down), with a given color.

Draws a rectangle outline with its top-left corner at [x, y] with size [w, h] (width going to the right, height going down), with a given line thickness and color.

Draws a solid triangle between points v1, v2, and v3 with a given color.

Draws a triangle outline between points v1, v2, and v3 with a given line thickness and color.