xxxxxxxxxx
//Exercise 4: Thomas Huybers
//Fun with gradients!!
let color = new Array(100)
function setup() {
createCanvas(400, 400);
colorMode(HSB);
background(60, 38, 79);
}
function mousePressed() {
for (let i = 0; i < color.length; i++)
noStroke()
color[i] = random(0, 255)
fill(color[i], 50, 70)
ellipse(200, 100, 100, 100);
}
function mouseReleased() {
for (let i = 0; i < color.length; i++)
noStroke()
fill(color[i], 70, 90)
ellipse(200, 300, 100, 100);
}