xxxxxxxxxx
49
let font;
let space;
let amount = 40;
let state = [amount];
let myText = ['C', 'I', 'A', 'N', '', 'J', 'O', 'C', 'H', 'E', 'M'];
function preload() {
font = loadFont("https://cdn.glitch.com/ba7ae563-6481-4d92-8b25-48f6cd661df0%2FEverettMono-Regular-web.ttf?v=1617819670199");
}
function setup() {
let myCanvas = createCanvas(windowWidth, windowHeight);
myCanvas.position(0, 0);
myCanvas.style('z-index', '-1000');
frameRate(10);
}
function draw() {
background(255, 50);
textFont(font);
fill(0)
textSize(16);
ellipseMode(CORNER);
myText = ['C', 'I', 'A', 'N', '', 'J', 'O', 'C', 'H', 'E', 'M'];
for(let i=0; i < 29; i++){
space = int(random(1, 11+i));
myText.splice(space, 0, '');
}
let tileW = (width-80)/amount;
for(let x = 0; x < amount; x++){
push();
translate(40+x*tileW, 60+((frameCount%30)*30));
text(myText[x], 0, 0);
pop();
}
}