Skip to content

Expand Examples menu to 5 topics x 5 sketches#19

Merged
vecnode merged 1 commit into
mainfrom
examples-5x5-topics
Jul 11, 2026
Merged

Expand Examples menu to 5 topics x 5 sketches#19
vecnode merged 1 commit into
mainfrom
examples-5x5-topics

Conversation

@vecnode

@vecnode vecnode commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Grew the Examples menu from 5 flat sketches to 25, grouped into 5 topics of 5 each: Motion & Physics, Shapes & Geometry, Waves & Noise, Particles & Systems, Color & Pattern.
  • The original 5 sketches are kept (renamed to Title Case for consistency across the new set) and distributed into their matching topics; 20 new sketches added.
  • #examples-menu now renders non-interactive .menu-section-label topic headers between groups; .menu-list-scroll caps the dropdown height so it scrolls instead of overflowing the window.

Test plan

  • node --check public/script.js passes.
  • Extracted the examples object and ran each of the 25 sketch bodies through vm.Script - all parse as valid JS.
  • Built and ran the app locally; loaded each of the 25 examples in sequence via loadExample() in the live app and listened for the sketch iframe's sketch-error postMessage bridge - zero errors across all 25.
  • Verified the menu DOM: 5 .menu-section-label headers, 25 button.menu-item, grouped in the intended order.

Generated with Claude Code

- public/script.js: examples object grows from 5 to 25 sketches, grouped
  into five topics (Motion & Physics, Shapes & Geometry, Waves & Noise,
  Particles & Systems, Color & Pattern). The 5 originals are kept (renamed to
  Title Case for consistency) and 20 new ones added.
- public/index.html: #examples-menu lists all 25 under non-interactive
  .menu-section-label topic headers.
- public/style.css: .menu-list-scroll caps the dropdown height and scrolls
  instead of overflowing the window; .menu-section-label styles the topic
  headers.
- Verified: each sketch parses as valid JS (vm.Script) and all 25 run with
  zero sketch-error postMessage events when loaded in sequence in the live app.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vecnode vecnode merged commit 0d43ea3 into main Jul 11, 2026
@vecnode vecnode deleted the examples-5x5-topics branch July 11, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant