water
library
Functions
bead (Painter p , double x , double y , double vx , double vy , int s , List <int > c , [double a = 1.0 ])
→ void
A droplet at (x, y) moving at (vx, vy) px/s: s 1 is a pixel, 2 a shaded 2x2,
3 a round bead with a highlight; a tail trails back along its motion, longer the faster it goes.
billow (Painter p , double x , double y , double r , List <int > c , [double a = 1.0 ])
→ void
A billow of churning foam: shadowed underside, white body, lit cap.
lace (Painter p , double cx , double cy , double rx , double ry , double k , List <int > c , double t , [int seed = 0 ])
→ void
Lacy foam floating on the surface around (cx, cy).
pebble (Painter p , double x , double y , double r , List <int > st )
→ void
A pebble or rock: lit upper left, shaded lower right, dark rim.
ring (Painter p , double cx , double cy , double r , double sy , double k , List <int > c , {int n = 2 , double gap = 3.0 , int half = 0 , bool hot = false , double glint = 0.0 , int seed = 0 , double wob = 0.0 })
→ void
A ripple on a surface seen at a low angle.
rockColors ()
→ List <int >