Skip to content

cf_draw_polygon_fill

Category: draw
GitHub: cute_draw.h


Draws a filled polygon.

void cf_draw_polygon_fill(const CF_V2* points, int count, float chubbiness);
Parameters Description
points An array of points to define the polygon surface.
count The number of points in the polygon.
chubbiness Inflates the shape, similar to corner-rounding. Makes the shape chubbier.

Remarks

This function has a hard-limit of up to 8 points.

cf_draw_line
cf_draw_polyline
cf_draw_bezier_line
cf_draw_bezier_line2
cf_draw_arrow
cf_draw_polygon_fill_simple