Sierpinski gasket
by NightElfik
Short link: http://malsys.cz/g/ft9NqdWi
Comments
comments powered by DisqusSource code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | lsystem SierpinskiTrangle { set symbols axiom = A; set iterations = 8; interpret A B as DrawForward(2 ^ -currentIteration * 800); interpret + as TurnLeft(60); interpret - as TurnLeft(-60); rewrite A to B - A - B; rewrite B to A + B + A; } process all with SvgRenderer; |
Thumbnail extension
1 2 3 | process all with SvgRenderer set iterations = 7 set initialAngle = 60; |