01 Nov 2007

L-System with Asymptote – fig0120

Category: Asymptote,L-System

Figure 0012
(Compiled with Asymptote version 1.84svn-r4619)
    
/*Source*/
import Lsystem;
size(10cm,0);

string[][] rules=new string[][]{{"F",""},{"X","-FX++FY-"},{"Y","+FX--FY+"}};
Lsystem dragon=Lsystem("X",rules, La=45, Lai=0);
dragon.iterate(12);
draw(dragon.paths(), white);

shipout(bbox(3mm, Fill(black)));

Étiquettes : ,