01 Nov 2007

L-System with Asymptote – fig0060

Category: Asymptote,L-System

Figure 0006
(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);
Koch.iterate(4);
filldraw(Koch.paths()[0]&cycle, paleyellow, 1bp+black);
shipout(bbox(2mm, Fill(lightyellow)));

Étiquettes : ,