Animated Dragon curve
by NightElfik
Short link: http://malsys.cz/g/w0iSwjbQ
Comments
comments powered by DisqusSource code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | lsystem DragonCurve { set symbols axiom = L(400); //set initialAangle = 45; set iterations = 14; set interpretEveryIteration = true; set canvasOriginSize = {-100, -150, 650, 440}; let sq2 = sqrt(2); rewrite R(d) to - R(d / sq2) + + L(d / sq2) -; rewrite L(d) to + R(d / sq2) - - L(d / sq2) +; interpret R L as DrawForward(0, 3); interpret + as TurnLeft(45); interpret - as TurnLeft(-45); } process all with AnimationRenderer; |
Thumbnail extension
1 2 | process all with AnimationRenderer set scaleOutputToFit = {512, 256}; |