Sphinx colored
by NightElfik
Short link: http://malsys.cz/g/n1dHUcHO
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 20 21 22 23 24 | lsystem SphinxColored { set symbols axiom = x(60); set iterations = 5; set continuousColoring = true; interpret F as MoveForward(8); interpret G(age) as MoveForward(2^age * 8); interpret + as TurnLeft; interpret | as TurnLeft(180); interpret < as StartPolygon(0, 0); interpret . as RecordPolygonVertex; interpret > as EndPolygon; rewrite x(a) to < . +(a) F F . +(-a) x(-a) F F . +(a) F F . +(-2a) F F F . | x(a) | F . +(-2a) x(-a) F F F . x(-a) F F F . | >; rewrite F to G(1); rewrite G(age) to G(age + 1); rewrite < to nothing; rewrite > to nothing; rewrite . to nothing; } process all with SvgRenderer; |