xxxxxxxxxx
28
let mFont;
let mSize = 40;
let word = "word";
function preload() {
mFont = loadFont("./ostrich-sans-regular.ttf");
}
function setup() {
createCanvas(400, 400);
textFont(mFont);
textSize(mSize);
textAlign(LEFT, TOP);
fill(255);
}
function draw() {
background(220, 20, 120);
let max_xy = frameCount % height;
for (let xy = 0; xy < max_xy; xy += mSize) {
text(word, xy, xy);
}
}