5 ms·
Show HN: Animating randomized L-Systems in real time
- deepstream 7y agohttps://github.com/ehrenjn/LSystems https://github.com/ehrenjn/LSystems
- mturmon 7y agoThis is fun to see on HN, which has shown a (justifiable) affection for L-systems. I wonder if an example that is closer to the original root of L-systems (biological/botanical shapes, like trees) would be a nice addition the the initial basic examples?
- Rabidgremlin 7y agoPlant shapes animate particularly will. See the example about halfway through this post: http://blog.rabidgremlin.com/2014/12/09/procedural-content-generation-l-systems/ http://blog.rabidgremlin.com/2014/12/09/procedural-content-g...
- mturmon 7y agoThat's exactly the kind of rule system I had in mind, and it seems like it would fit into the scheme of the OP. Thanks.
- the_wack 7y agoyou tend to get more tree looking structures if you crank up the rule complexity (https://ehrenjn.github.io/LSystems/lsystems.html?FADE_TIME_MS=100&DISTANCE_PER_MOVEMENT=10&LINE_WIDTH=1&FS_PER_TURTLE_MOVE=21&MS_PER_TURTLE_MOVE=10&RANDOM_ANGLE_CHANCE=0.5&MIN_START_LENGTH=1&MAX_START_LENGTH=5&MIN_RULES=2&MAX_RULES=3&MIN_RULE_LENGTH=30&MAX_RULE_LENGTH=30&LSYSTEM_MAX_LENGTH=10000 https://ehrenjn.github.io/LSystems/lsystems.html?FADE_TIME_M...) But if I had a way of raising the average number of square brackets per rule then it would probably end up generating a lot more trees.
- v01dlight 7y agoI present, a single pixel on LSD: https://ehrenjn.github.io/LSystems/lsystems.html?FADE_TIME_MS=10&DISTANCE_PER_MOVEMENT=1&LINE_WIDTH=1&FS_PER_TURTLE_MOVE=1&MS_PER_TURTLE_MOVE=10&RANDOM_ANGLE_CHANCE=0&MIN_START_LENGTH=1&MAX_START_LENGTH=1&MIN_RULES=2&MAX_RULES=2&MIN_RULE_LENGTH=2&MAX_RULE_LENGTH=2&LSYSTEM_MAX_LENGTH=10 https://ehrenjn.github.io/LSystems/lsystems.html?FADE_TIME_M...
- davidhyde 7y agoWow that's so cool! Wish I could turn this into a screen saver.
- cmauniada 7y agosame here, ill do some digging once i get home and report back if i find a way. edit: couldn't wait until I got home so I found a solution for mac users. You can use this[0] package to load screensavers from urls. [0] https://github.com/liquidx/webviewscreensaver https://github.com/liquidx/webviewscreensaver
- carapace 7y agoI didn't see the source linked from there, so: https://github.com/ehrenjn/LSystems https://github.com/ehrenjn/LSystems
- StreamBright 7y agoThis is wild. I really like L-Systems.
- mkchoi212 7y agoLowkey looks like a Windows screen-saver. But very cool explanation of the visualization!
- qubex 7y agoAnybody who enjoys this should definitely check out Clifford Pickover’s book “The Pattern Book: Fractals, Art, and Nature” (1995) (https://books.google.com.mt/books?id=e77sCgAAQBAJ&pg=PA235&lpg=PA235&dq=pickover+l-systems+book&source=bl&ots=QkHXJ1eqHz&sig=ACfU3U1b6BKssZFDtf0XbpEwCCL-smqGRg&hl=en&sa=X&ved=2ahUKEwingbTZ1YboAhWql4sKHSE1BcIQ6AEwAHoECAMQAQ#v=onepage&q=pickover%20l-systems%20book&f=false https://books.google.com.mt/books?id=e77sCgAAQBAJ&pg=PA235&l...)
- dunky11 7y agoJust a detail on styling. The white text/ black background combination is kind of hard on the eye since it's too much contrast. I would use a lighter shade of black for the background. Something like #0f0f0f would work.
- AtomicOrbital 7y agonicely done ... I wonder what the laptop battery draw difference would be if this had been written for WebGL rather than canvas ?