Log In  

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.

Cart #fafapemado-2 | 2020-07-20 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

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...

P#79482 2020-07-17 07:12 ( Edited 2020-07-20 17:18)


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 11:00:16 | 0.010s | Q:14