You may view all the posts of the category "L-System"
|
|
| (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)));







