Hacker News new | past | comments | ask | show | jobs | submit login

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/



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




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: