These two functions control the animation state. You can also use the
animate property (see below).
update() after adjusting properties of the wave.
Use this function to set the linestyle used for the curve. The object
obj can have properties
alpha, and (instead of
wavelength is a number between 400 and 700 the color of the curve will be that of the corresponding wavelength of light (in nm).
wavelength is specified in pixels.
amplitude is specified in pixels.
width determines the horizontal extent of the sinusoid component, in pixels.
phase is given as a number between 0 and 1.
This property reflects and controls the animation state:
true if animating and
false if paused. Note also the
startAnimation() functions (see above).