Quadratic Gosper curve
by NightElfik
Short link: http://malsys.cz/g/ebgFuRmY
Comments
comments powered by DisqusSource code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | lsystem QuadraticGosperCurve { set symbols axiom = - R; set iterations = 3; set continuousColoring = true; interpret R L as DrawForward(6); interpret + as TurnLeft(90); interpret - as TurnLeft(-90); rewrite L to L L - R - R + L + L - R - R L + R + L L R - L + R + L L + R - L R - R - L + L + R R -; rewrite R to + L L - R - R + L + L R + L - R R - L - R + L R R - L - R L + L + R - R - L + L + R R; } process all with SvgRenderer; |
Thumbnail extension
1 2 | process all with SvgRenderer set iterations = 2; |