Expand description
2D shapes rendering.
Structs§
Functions§
- draw_
arc - Draw arc from
rotation(in degrees) toarc + rotation(arcin 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 radiusrandcolor. - draw_
circle_ lines - Draws a circle outline centered at
[x, y]with a given radius, linethicknessandcolor. - 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), linethicknessandcolor. - 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 theyaxis), and colors for outline given byborder_colorand fill byfill_color. - draw_
line - Draws a line between points
[x1, y1]and[x2, y2]with a giventhicknessandcolor. - 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 linethicknessandcolor. - draw_
rectangle_ lines_ ex - draw_
triangle - Draws a solid triangle between points
v1,v2, andv3with a givencolor. - draw_
triangle_ lines - Draws a triangle outline between points
v1,v2, andv3with a given linethicknessandcolor.