xxxxxxxxxx
75
let bougerE = 0;
let matypo;
function preload() {
matypo = loadFont('SpaceGrotesk-Bold.otf');
}
function setup() {
createCanvas(600, 600);
//rectMode(CENTER);
textAlign(CENTER, CENTER);
}
function draw() {
background(0);
bougerE = bougerE + 1;
push();
translate(width/2, 50);
textFont(matypo);
scale(bougerE/30, 1);
textSize(240);
fill('white');
text('1', 0, 0);
pop();
push();
translate(width/2, 250);
textFont(matypo);
scale(bougerE/30, 1);
textSize(380);
fill('white');
text('2', 0, 0);
pop();
push();
translate(width/2, 490);
textFont(matypo);
scale(bougerE/30, 1);
textSize(240);
fill('white');
text('3', 0, 0);
pop();
if (bougerE == width/6) {
fill('red');
}
/*
push();
translate(300, 300);
//rotate(angle);
scale(mouseX / 300, mouseY / 300);
noStroke();
fill(255);
rect(0, 0, 200, 150);
pop();
*/
}