blob: bbfda8c0df0359d8e621b17a44ef35cb1b5858e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
concrete Koch of Graftal = {
lincat N = {f : Str} ;
lincat S = {s : Str} ;
lin z = {f = F} ;
lin s x = {f = x.f ++ L ++ x.f ++ R ++ x.f ++ R ++ x.f ++ L ++ x.f} ;
lin c x = {s = "newpath 10 550 moveto" ++ x.f ++ "stroke showpage"} ;
oper F : Str = "2 0 rlineto" ;
oper L : Str = "+90 rotate" ;
oper R : Str = "-90 rotate" ;
}
|