31 Oct 2007

L-System with Asymptote – fig0020

Category: Asymptote,L-System

Figure 0002
(Compiled with Asymptote version 1.84svn-r4619)
    
import Lsystem;
size(10cm,0);

Lsystem SierpinskiCurve=
  Lsystem("YF",
          new string[][]{{"X","YF+XF+Y"},{"Y","XF-YF-X"}},
          La=60, Lai=0);
SierpinskiCurve.iterate(7);
draw(SierpinskiCurve.paths(), bp+0.2*green);

shipout(bbox(Fill(paleyellow)));


Étiquettes : ,