Leaf

Leaf

Source code

1
2
3
4
5
6
7
8
9
10
11
12
lsystem Leaf extends StdLsystem {
 
set symbols axiom = G(100, 4, #000000) [ a ] [ b ];
set iterations = 15;
set initialAngle = 90;
 
rewrite a to [ +(10) a <(#009900) . ] . c . >;
rewrite b to [ -(10) b <(#009900) . ] . c . >;
rewrite c to G(20, 2, #005500) c;
}
 
process all with SvgRenderer;