Skip to content

cf_draw_quad2

Category: draw
GitHub: cute_draw.h


Draws a quad wireframe.

void cf_draw_quad2(CF_V2 p0, CF_V2 p1, CF_V2 p2, CF_V2 p3, float thickness, float chubbiness);
Parameters Description
p0 A corner of the quad.
p1 A corner of the quad.
p2 A corner of the quad.
p3 A corner of the quad.
thickness The thickness of each line to draw.
chubbiness Inflates the shape, similar to corner-rounding. Makes the shape chubbier.

Remarks

All points p0 through p3 are encouraged to be in counter-clockwise order.

cf_draw_quad
cf_draw_quad_fill2
cf_draw_quad_fill