I've just kinda been playing around and suddenly I felt like doing something with fractals. I saw a few Lindenmayer system tools posted on here, but they didn't quite have the features I wanted. (If you'd like more, you could suggest some too.)
The first line is the starting state, the second and third are replacement rules, the fourth is your palette of symbols plus a couple settings.
… is blank, ⬅️➡️ are rotation, ˇ∧웃 are variables that move the cursor forward, ●♥♪ are variables that don't.
O and X both work as confirm buttons, but also increment and decrement the iteration and angle numbers.
The pause menu lets you change the step length or cycle through a few presets.
You can check https://en.wikipedia.org/wiki/L-system and browse around for ideas, or just mess around I suppose!
If anyone has good ideas for optimization that'd be nice. As you might imagine, the amount of points to draw explodes pretty quickly.
EDIT: ALSO YEAH SORRY ABOUT IT RUNNING OUT OF MEMORY AND CRASHING I KINDA HAD NO IDEA FROM THE DEVKIT
Edit: and of course, halving memory usage doesn't really do anything when the increase is exponential per iteration
Spoilers: other gifs
Another known bug is that when you cycle through presets it remembers changes. My bad, i'll switch that to deepcopy later...
[Please log in to post a comment]