Add L-system garden at /lsystem - #163
Merged
Merged
Conversation
Rewrite-rule expansion (capped at 400k symbols so deep dragon curves cannot hang the tab) plus a turtle interpreter supporting F/G draw, f move, +/- turns, and [ ] state stack with bracket depth tracked per segment. Deeper branches render thinner and dimmer for a natural plant look. Five presets: fern plant, dragon curve, Sierpinski triangle, Koch snowflake, and bush; depth and angle sliders rebuild live (the angle slider mutates the form away from the canonical value). Segments draw progressively at 400/frame; the figure auto-fits its bounds. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WgEKRuVdor8KhaiPkv38aQ
✅ Deploy Preview for ianalloway ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ianalloway
marked this pull request as ready for review
July 19, 2026 04:39
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
# Conflicts: # src/App.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/lsystem— fractal plants and curves grown from L-system rewrite rules with turtle graphicssrc/features/lsystem/turtle.ts: rule expansion (400k-symbol cap), turtle interpreter (F/G draw, f move, +/− turn, [ ] state stack with per-segment bracket depth), bounds tracking; five presetssrc/pages/Lsystem.tsx: progressive canvas rendering (400 segments/frame) with depth-based thickness/brightness, preset buttons, depth and angle sliders, auto-fit to boundssrc/App.tsx: lazy-loaded/lsystemroute with SEO metadataHow it works
Test plan
/lsystem— fern plant draws in progressively, branching visiblyGenerated by Claude Code