Module shapes

Source
Expand description

2D shapes rendering.

Structs§

DrawRectangleParams

Functions§

draw_arc
Draw arc from rotation(in degrees) to arc + rotation (arc in degrees), centered at [x, y] with a given number of sides, radius, line thickness, and color.
draw_circle
Draws a solid circle centered at [x, y] with a given radius r and color.
draw_circle_lines
Draws a circle outline centered at [x, y] with a given radius, line thickness and color.
draw_ellipse
Draws a solid ellipse centered at [x, y] with a given size [w, h], clockwise rotation (in degrees) and color.
draw_ellipse_lines
Draws an ellipse outline centered at [x, y] with a given size [w, h], clockwise rotation (in degrees), line thickness and color.
draw_hexagon
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.
draw_line
Draws a line between points [x1, y1] and [x2, y2] with a given thickness and color.
draw_poly
Draws a solid regular polygon centered at [x, y] with a given number of sides, radius, clockwise rotation (in degrees) and color.
draw_poly_lines
Draws a regular polygon outline centered at [x, y] with a given number of sides, radius, clockwise rotation (in degrees), line thickness, and color.
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 given color.
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 line thickness and color.
draw_rectangle_lines_ex
draw_triangle
Draws a solid triangle between points v1, v2, and v3 with a given color.
draw_triangle_lines
Draws a triangle outline between points v1, v2, and v3 with a given line thickness and color.