Voronoi Shatter
repo: ~/Projects/voronoi-shatter · 5 commits · 0 in last 24h, 5 in last 7d · █
Skills used
- /button1
- /explode1
- /arc1
- /reassemble1
- /clear1
- /scatter1
Creative ideas + design notes
Commits with substantial prose (≥120 chars) — the rationale behind each move.
a67a3b7 · 2026-07-24 · polish: aria-pressed on toggles + reduced-motion CSS guard
- Seeds/Cracks toggle buttons expose aria-pressed state for screen readers.
- @media (prefers-reduced-motion: reduce) disables panel/button CSS transitions
to match the existing JS reduced-motion handling.
Playwright-verified: aria-pressed flips true->false, toggles work, zero errors.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
88e9a81 · 2026-07-24 · Voronoi Shatter: clamp seeds into viewport on resize + honor prefers-reduced-motion
- resize now clamps every seed inside the new W/H so shards can't vanish
off-canvas when the window shrinks or a device rotates
- prefers-reduced-motion collapses grow/explode durations to ~instant and
drops the intro-stagger, so cells still tessellate without vestibular churn
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
062b607 · 2026-07-24 · chore: guard centroid() against empty polygon (session close)
Defensive n===0 guard so centroid never emits NaN into gradient/arc math.
Both lint + refactor review passes otherwise found the code clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
7bc7a7a · 2026-07-24 · Voronoi Shatter: interactive weighted-Voronoi shatter effect
Built from the Model Arena artifact into a real single-file app. Kept the
power-diagram growth animation; added explode/reassemble, point removal,
drag-paint, 6 palettes, crack toggle, undo/clear/scatter, PNG export,
keyboard shortcuts, touch support, and a nearest-first clipping early-out.
Headless Playwright verified: renders, interactions, zero runtime errors.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
File tree
3 files tracked. Click any to browse the source at HEAD.
rendered in 0ms