X= cos(radians) * radius + xOffset
Y= sin(radians) * radius + yOffset
The value of radians
varies between 0 and 2*pi.
The image below is constructed by calculating circles with radii from 1 to 200 pixels.
The pixel color is set with these formulas:
Red = absolute value (255*sin(radius/10.0))
Green= absolute value (255*sin(radians*6))
Blue = absolute value (255*sin(radians*8))
Write a script which will generate this image. The image can be displayed on a canvas or saved in a file.