Watch Fun Programming[video 16] where Mr. Fun uses nofill() and circles of different sizes to make animated rainbows. Here’s his code:
void setup()
{
size(300,300);
background(#04B1CE);
noFill();
}
void draw()
{
strokeWeight(random(3,10));
stroke(random(255),random(255),random(255));
float rainbow_size = random(200,270);
ellipse(150,300,rainbow_size,rainbow_size);
}
Create your own animated rainbow program - be creative! For example, make a double rainbow, a rainbow in each corner, a shrinking rainbow square.