Plant
by NightElfik
Short link: http://malsys.cz/g/PDio1WfG
Comments
comments powered by DisqusSource code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | lsystem Plant3 { set symbols axiom = F; set initialAngle = 90; set iterations = 4; // random color, from #00BB00 darken by 0 to 20% interpret F as DrawForward(12, 2, darken(#00BB00, random(0, 0.3))); interpret + as TurnLeft(360/16); interpret - as TurnLeft(-360/16); interpret [ as StartBranch; interpret ] as EndBranch; rewrite F to F F - [ - F + F + F ] + [ + F - F - F ]; } process all with SvgRenderer; |