Code: Select all
startshape sea
background { hue 190 b -.45 sat .5}
rule WAVE {
SQUARE {}
WAVE { s 0.95 y 0.3 b .1 }
FOAM { }
}
rule WAVE {
SQUARE {}
WAVE { y 0.3 r -4 }
FOAM {r 100}
}
rule FOAM {
FOAM {s 0.5 r 110 y 6.2 }
FOAM {s 0.5 r 105 y 6.2 }
}
rule FOAM {
DROP {}
FOAM {s 0.5 r 100 y 6.2 }
//FOAM {s 0.5 r 85 y 6.2 }
//THORNS {s 0.5 y 6.2 }
}
rule DROP {
CIRCLE {}
DROP { s .6 y .4 r 1}
}
rule sea {
WAVE {x -2.5 y 1.3 b -.9 h 1 sat .5 r -9 hue 180}
WAVE {x .9 y 2.31 b -.9 h 1 sat .8 r -13 hue 240 s .5}
SAND {}
SAND {x 1}
SAND {x 3}
SAND {x 5 r 10}
SAND {x 7 r 20}
SAND {x 8 r 30}
HORIZON {}
}
rule SAND {
CIRCLE{s .3 .12 y -4 x -8 r 10 hue 30 sat .8 b .4}
SAND {s .95 x .05 y .1 r -.8 sat -.1 b .4}
}
rule SAND {
CIRCLE{s .3 .15 y -2 x -8 r 10 hue 30 sat .8 b .4}
SAND {s .95 x .04 y .1 r -.2 sat -.5 b .4}
}
rule SAND {
CIRCLE{s .4 .2 y -3 x -8 r 10 hue 30 sat .8 b .4}
SAND {s .99 x .04 y .02 r -.5 sat -.5 b .4}
}
rule HORIZON {
SQUARE {b -1 s .3 y 4 x -8 }
HORIZON { y 0.17 x .01 s .96 }
}
rule HORIZON {
SQUARE {b -1 s .3 y 4 x -8 }
HORIZON { y 0.17 x .01 s .96 flip 90 }
}
like it? I used http://www.dospeixos.net/projects/contexteditor/ in kubuntu, it rocks! (it does not recognize z parameters, "path" reserved word or loop notation, tough).
also: did you see the port to javascript and canvas of CFA? http://azarask.in/projects/algorithm-ink/#17d75094 amazing!