3 ms·
I tried for a bit and couldn't get it to work either. The dragon curve example is a lot more complicated than the simplest definition, which is a hint. I don't
by deosjr 3y ago
I tried for a bit and couldn't get it to work either.
The dragon curve example is a lot more complicated than the simplest definition, which is a hint. I don't even know exactly what | or [ or ] are supposed to do here.
Here's a version in Go instead: https://github.com/deosjr/GenGeo/blob/master/gen/lindenmayer.go#L252 https://github.com/deosjr/GenGeo/blob/master/gen/lindenmayer...
Which renders into:
https://github.com/deosjr/GenGeo/blob/83c77f9433e569b30f71b33baf47e66a8a66940a/out.png https://github.com/deosjr/GenGeo/blob/83c77f9433e569b30f71b3...
(see Algorithmic Beauty of Plants for way more examples)