Skip to main content

Not an L-System

·183 words·1 min

Ended up ditching the jetblack-serialization library for now and storing points as tuples instead of Vector2s. After that change I was able to remove a bunch of code and keep things simple.

Not sure why I thought the trees were an L-System. I guess in my mind I boiled down the whole concept of an L-System to just fractal trees. Like these weeds from Wikipedia:

Pasted image 20240823120003 Image from: https://commons.wikimedia.org/wiki/File:Fractal_weeds.jpg

I’ve updated the code so that Segments no longer store their own length and direction. Everything is calculated on the fly from the Parameters class. This means I’ll be able to adjust the parameters and immediately see how it affects the shape of the L-system tree.

Pasted image 20240823190801 Image from: https://www.nstuffmusic.com/p-17933-korg-nanokontrol-2-slim-line-usb-controller-black.aspx

Once upon a time I used a Korg Nanokontrol2 MIDI controller to tweak parameters like these but I think I gave it away. I shopped around for MIDI controllers a little bit and of course there’re a lot of nice-lookin’ products out there… but it’s a distraction. (-:

Learning up on Pygame GUI will be a much better use of my time.

Pasted image 20240823191259 Image from: https://github.com/MyreMylar/pygame_gui