2 USING: kernel namespaces sequences math
3 opengl.gl opengl.glu ui ui.gadgets.slate
6 IN: cfdg.models.chiaroscuro
8 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14 { 60 [ 0.6 s circle ] [ 0.1 x 5 r 0.99 s -0.01 b -0.01 a black ] }
21 { 60 [ 0.6 s circle ] [ 0.1 x -5 r 0.99 s 0.01 b -0.01 a white ] }
26 : chiaroscuro ( -- ) { [ 0.5 b black ] } rule ;
28 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
31 [ -0.5 b ] >background
32 { -3 6 -2 6 } >viewport
34 [ chiaroscuro ] >start-shape ;
36 : run ( -- ) [ init ] cfdg-window. ;