This example illustrates the appearance of different hues. It uses a for loop to repeat transformations. The loop initializes a variable called angle, which changes the rotation of a circle as well as its hue. Each time the loop repeats, a circle is drawn relative to the center of the canvas. The push() and pop() functions make these transformations affect only the individual circle.
Related Examples

No alt text
Color Interpolation
Fade between two colors.

No alt text
Color Wheel
Create a visualization of the color spectrum.

No alt text
Bezier
Draw a set of curves.

No alt text
Kaleidoscope
Draw mirrored designs with the mouse.

No alt text
Noise
Generate naturalistic textures using Perlin noise.

No alt text
Recursive Tree
Draw a tree using a function that calls itself.