Merge branch 'master' of git://factorcode.org/git/factor
[factor/jcg.git] / extra / L-system / models / abop-5 / abop-5.factor
blob2e373f713c84d8c49740d45690ff78989bd503b9
2 USING: accessors ui L-system ;
4 IN: L-system.models.abop-5
6 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8 : abop-5 ( <L-system> -- <L-system> )
10   L-parser-dialect >>commands
12   [ 5 >>angle ] >>turtle-values
14   "a" >>axiom
16   {
17     { "a" "F[+(45)l][-(45)l]^;ca" }
19     { "l" "j" }
20     { "j" "h" }
21     { "h" "s" }
22     { "s" "d" }
23     { "d" "x" }
24     { "x" "a" }
26     { "F" "'(1.17)F'(.855)" }
27   }
28     >>rules ;
30 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
32 : main ( -- ) [ L-system abop-5 "L-system" open-window ] with-ui ;
34 MAIN: main
35