Expand description
2D shapes rendering.
Structs
Functions
- Draws a solid circle centered at
[x, y]
with a given radiusr
andcolor
. - Draws a circle outline centered at
[x, y]
with a given radius, linethickness
andcolor
. - Draws an outlined solid hexagon centered at
[x, y]
with a radiussize
, outline thickness defined byborder
, orientation defined byvertical
(whentrue
, the hexagon points along they
axis), and colors for outline given byborder_color
and fill byfill_color
. - Draws a line between points
[x1, y1]
and[x2, y2]
with a giventhickness
andcolor
. - Draws a solid regular polygon centered at
[x, y]
with a given number ofsides
,radius
, clockwiserotation
(in degrees) andcolor
. - Draws a regular polygon outline centered at
[x, y]
with a given number ofsides
,radius
, clockwiserotation
(in degrees), linethickness
, andcolor
. - 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 givencolor
. - Draws a solid rectangle with its position at
[x, y]
with size[w, h]
, with parameters. - 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 linethickness
andcolor
. - Draws a solid triangle between points
v1
,v2
, andv3
with a givencolor
. - Draws a triangle outline between points
v1
,v2
, andv3
with a given linethickness
andcolor
.