2 USING: accessors ui L-system ;
4 IN: L-system.models.abop-1
6 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
8 : abop-1 ( <L-system> -- <L-system> )
10 L-parser-dialect >>commands
15 { "A" "F [ & '(.8) ! B L ] >(137) ' !(.9) A" }
16 { "B" "F [ - '(.8) !(.9) $ C L ] ' !(.9) C" }
17 { "C" "F [ + '(.8) !(.9) $ B L ] ' !(.9) B" }
19 { "L" " ~ c(8) { +(30) f -(120) f -(120) f }" }
23 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
25 : main ( -- ) [ L-system abop-1 "L-system" open-window ] with-ui ;