Hacker News new | ask | show | jobs
by evilc00kie 1849 days ago
I once used 'The Algorithmic Beauty of Plants' (http://algorithmicbotany.org/papers/#abop) to build a simple L-System web service while studying: https://lsystems.raphaelpour.de/
2 comments

There is a cool algorithm called space colonization that can do a lot of what l-systems do (such as tree modeling). Pretty straightforward to implement and has some nice results.

http://algorithmicbotany.org/papers/colonization.egwnp2007.l...

For the curious: I've written a basic space colonisation algorithm to simulate leaf venation patterns in a browser here: https://openprocessing.org/sketch/1211361

(note: I wrote this many years ago and it's horribly inefficient, I don't even dare to look at the code anymore, but it's on that same page)

Uh, not sure what I did exactly, but this is really cool: https://i.imgur.com/6wDRXMd.png
Looks like a relative of the Gosper curve! https://en.wikipedia.org/wiki/Gosper_curve
Wow, good catch! I'm highly impressed!
You can do pretty impressive stuff by just tweaking random knobs. I'd recommend playing with the angle and iteration setting. But be patient with the iteration one. The computing complexity rises exponential with increasing iterations which causes the tab to freeze..

EDIT: Fix typo and improve iteration explaination