xxxxxxxxxx
74
let x = 0,
y = 0,
end = 100;
let monoFont;
function preload() {
monoFont = loadFont("Lack-Line-Regular.otf"
);
}
function setup() {
createCanvas(400, 400);
background(0);
frameRate(7);
textSize(32);
textFont(monoFont);
filter(BLUR);
}
function draw() {
// cero central, no se mueve
//text("0", 200, 200);
let centerX = 50;
let centerY = height / 2;
x += 1;
y += 1;
//filter(ERODE);
if(x){
}
// ya tengo las posiciones, entonces:
translate (x, y%60);
text("G", centerX-30, centerY-30);
text("O", centerX, centerY-30);
text("O", centerX+30, centerY-30);
fill(255);
text("D", centerX+30, centerY);
text("B", centerX+30, centerY+30);
text("Y", centerX, centerY+30);
text("E", centerX-30, centerY+30);
text("!", centerX-30, centerY);
if(y > 20){
fill(240, 32, 82);
}
if (y > 200)
{
fill(120, 120, 24);
}
// noLoop();
// filter(BLUR, 3);
}