Get some cfdg models to compile

release
Eduardo Cavazos 2007-10-08 14:52:54 -05:00
parent 48304f53b5
commit 0f8e62ee3a
3 changed files with 17 additions and 17 deletions

View File

@ -6,12 +6,13 @@ IN: cfdg.models.aqua-star
: tentacle ( -- )
iterate? [
{ [ circle
[ .23 y .99 s .002 b tentacle ] do ]
[ circle
[ .17 y 2 r .99 s .002 b tentacle ] do ]
[ circle
[ .12 y -2 r .99 s .001 b tentacle ] do ] } random call
{ { 1 [ circle
[ .23 y .99 s .002 b tentacle ] do ] }
{ 1 [ circle
[ .17 y 2 r .99 s .002 b tentacle ] do ] }
{ 1 [ circle
[ .12 y -2 r .99 s .001 b tentacle ] do ] } }
call-random-weighted
] when ;
: anemone ( -- )

View File

@ -1,5 +1,4 @@
USING: kernel namespaces math opengl.gl opengl.glu ui ui.gadgets.slate
mortar random-weighted cfdg ;
@ -28,7 +27,7 @@ DEFER: start
[ 0.5 x 0.5 y 45 r f-triangles ] do
[ 1 y 25 r 0.9 s spiral ] do ] }
{ 0.022 [ [ 90 flip 50 hue start ] do ] } }
random-weighted* call
call-random-weighted
] when ;
: start ( -- )

View File

@ -11,8 +11,8 @@ iterate? [
{ 0.03 [ square
[ 60 r spike ] do
[ -60 r spike ] do
[ 0.95 y 0.97 s spike ] do ] }
} random-weighted* call
[ 0.95 y 0.97 s spike ] do ] } }
call-random-weighted
] when ;
: snowflake ( -- )