Sierpinski trangle (filled)
by NightElfik
Short link: http://malsys.cz/g/jEN44fji
Comments
comments powered by DisqusSource code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | lsystem SierpinskiTrangleFilled extends Polygons { set symbols axiom = + <(0, 0) . A >; set iterations = 7; interpret A B as MoveForward(2 ^ -currentIteration * 600); interpret + as TurnLeft(60); interpret - as TurnLeft(-60); rewrite A to B . - A . - B .; rewrite B to A . + B . + A .; } process all with SvgRenderer; |