xxxxxxxxxx
// took aBe's suggestion and played around with Lesson 35
// at funprogramming.org
let newGrid;
function setup() {
createCanvas(800, 600);
noStroke();
background(205, 235, 90);
newGrid = new makeGrid();
}
function draw() {
// rotation #8
if (millis() < 14000) {
background(205, 235, 90, 20);
// rotation #1
} else if (millis() < 30000) {
background(130, 235, 90, 20);
// rotation #2
} else if (millis() < 40000) {
background(90, 235, 170, 20);
// rotation #8 w/out text
} else if (millis() < 55000) {
background(90, 235, 225, 20);
// rotation #6 w/out text
} else if (millis() < 70000) {
background(175, 90, 235, 20);
// rotation #8 w/out text
} else if (millis() < 85000) {
background(235, 90, 150, 254);
} else {
background(255, 40, 40, 20);
}
newGrid.display();
}