2 USING: kernel namespaces sequences math
3 opengl.gl opengl.glu ui ui.gadgets.slate
6 IN: cfdg.models.flower6
10 [ 1 0.001 s* square ] do
11 [ -0.5 x 0.01 s -1 b circle ] do
12 [ 0.5 x 120.21 r 0.996 s 0.5 x 0.005 b petal6 ] do
16 12 [ [ [ 30 r ] times petal6 ] do ] each
17 12 [ [ [ 30 r ] times 90 flip petal6 ] do ] each ;
19 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
23 { -1 2 -1 2 } >viewport
25 [ flower6 ] >start-shape ;
27 : run ( -- ) [ init ] cfdg-window. ;