2D geometry primitives — Rect, Circle, overlap tests, clamp. Pure-loft, no other deps.
loft install shapes
use shapes;
| Guide | getting started with shapes |
|---|---|
| Version | 0.5.4 — published 2026-10-06 |
| Categories | Geometry |
| Requires | loft >=2026.8.0 |
| Compatibility | API: drop-in for 0.3.0 and later · stored data: drop-in for 0.3.0 and later |
| Download | 13 kB |
| Public API | 16 items, with their documentation |
| Dependencies | none |
| Used by | assets |
| Yanked versions | 0.1.0 — do not pin these |
| Source | read it here — the libraries are written in loft |
| Repository | https://github.com/loft-lang/loft-libs-graphics/tree/main/shapes |
A drop-in floor is the oldest release of this package the current one still replaces without a source change. Not declared means exactly that — the package has made no promise, which is the honest state for one published before the compatibility contract existed.