Expand description
2D shapes rendering.
Structs§
Functions§
- draw_
arc - Draw arc from
rotation
(in degrees) toarc + rotation
(arc
in degrees), centered at[x, y]
with a given number ofsides
,radius
, linethickness
, andcolor
. - draw_
circle - Draws a solid circle centered at
[x, y]
with a given radiusr
andcolor
. - draw_
circle_ lines - Draws a circle outline centered at
[x, y]
with a given radius, linethickness
andcolor
. - draw_
ellipse - Draws a solid ellipse centered at
[x, y]
with a given size[w, h]
, clockwiserotation
(in degrees) andcolor
. - draw_
ellipse_ lines - Draws an ellipse outline centered at
[x, y]
with a given size[w, h]
, clockwiserotation
(in degrees), linethickness
andcolor
. - draw_
hexagon - 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
. - draw_
line - Draws a line between points
[x1, y1]
and[x2, y2]
with a giventhickness
andcolor
. - draw_
poly - Draws a solid regular polygon centered at
[x, y]
with a given number ofsides
,radius
, clockwiserotation
(in degrees) andcolor
. - draw_
poly_ lines - Draws a regular polygon outline centered at
[x, y]
with a given number ofsides
,radius
, clockwiserotation
(in degrees), linethickness
, andcolor
. - draw_
rectangle - 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
. - draw_
rectangle_ ex - Draws a solid rectangle with its position at
[x, y]
with size[w, h]
, with parameters. - draw_
rectangle_ lines - 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
. - draw_
rectangle_ lines_ ex - draw_
triangle - Draws a solid triangle between points
v1
,v2
, andv3
with a givencolor
. - draw_
triangle_ lines - Draws a triangle outline between points
v1
,v2
, andv3
with a given linethickness
andcolor
.