xxxxxxxxxx
25
/*
Exercise #1: Make a rainbow snowman
Scientists have recently discovered a big advance in snowman-building technology. Gone are the days of cheery stovepipe hats and coal smiles. Gone are the days of carrot noses. Modern snowmen, like modern buildings, are one thing, and one thing only: tall.
Scientists have developed a way of creating 7-snowball-high snowpeople that are colored in every shade of the rainbow. Your mission, should you choose to accept it, is to create a rainbow snowman using one, and only one, for loop to determine both the position of each ellipse, the size of each ellipse, and the color of each ellipse. Your snowman should come out looking something like this.
*/
var colors = ['red','orange', 'yellow', 'green', 'blue', 'indigo', 'purple']
var sizes = [40, 45, 50, 60, 75, 85, 100];
function setup() {
createCanvas(400, 400);
rectMode(CENTER);
}
function draw() {
background(220);
}
}