cf_draw_push_outline¶
Category: draw
GitHub: cute_draw.h
Draws an outline around subsequent shapes.
| Parameters | Description |
|---|---|
color |
The outline color. |
width |
Outline width in world units. Zero (the default) disables it. |
Remarks¶
The outline is a band hugging the shape's edge, drawn under the shape itself, so a translucent fill shows the solid outline through it rather than doubling up. It comes straight out of the signed distance the shape already computes -- no second draw, no extra geometry, and it anti-aliases exactly like the shape does. Works on every SDF shape (circles, boxes, capsules, triangles, polygons, arrows, custom shapes, shape groups) and composes with cf_draw_push_glow. Sprites and text ignore it.