xxxxxxxxxx
27
function setup() {
createCanvas(1200, 750);
colorMode(HSB);
noStroke();
frameRate(5);
background(12, 60, 100);
}
function draw() {
for (var x = 65; x < width - 50; x = x + 50) {
for (var y = 65; y < height - 50; y = y + 50) {
fill(219, 50, 40 + ((x + y) / 20));
ellipse(x, y, 10 + (x / 75 - frameCount),10 + (y / 50 - frameCount));
}
}
}
function keyReleased() {
if (key == '1') {
noLoop();
}
if (key == '2') {
loop();
}
}