xxxxxxxxxx
25
// Increasing zoom
//
// Jared Donovan 2022
//
// Increases the size of the text over time.
// After 1000 frames, changes the background color.
let word = "zoom";
function setup() {
createCanvas(400, 400);
textAlign(CENTER, CENTER);
}
function draw() {
background(220);
if (frameCount > 1000){
background(255, 0, 0);
}
textSize(frameCount / 2);
text(word, width / 2, height / 2);
}