Skip to content

cf_draw_arrow

Category: draw
GitHub: cute_draw.h


Draws an arrow.

void cf_draw_arrow(CF_V2 a, CF_V2 b, float thickness, float arrow_width);
Parameters Description
a The starting point.
b The end point.
thickness The thickness of the line to draw.
arrow_width The width of the arrow to draw.

Remarks

The arrow renders as a single SDF (shaft and head unioned together), so it blends correctly even when drawn with transparency.

cf_draw_line
cf_draw_polyline
cf_draw_bezier_line
cf_draw_bezier_line2