31 Oct 2007

L-System with Asymptote – fig0040

Category: Asymptote,L-System

Figure 0004
(Compiled with Asymptote version 1.84svn-r4619)
    
/*Source*/
import Lsystem;

size(8cm,0);
Lsystem Koch=Lsystem("+F--F--F",
                     new string[][]{{"F","F+F--F+F"}},
                     La=60, Lai=0);
Koch.iterate(4);
filldraw(Koch.paths()[0]&cycle, paleyellow, 1bp+black);
shipout(bbox(2mm, Fill(lightyellow)));

Étiquettes : ,