xxxxxxxxxx
33
let font
let curIndex = 0;
function preload() {
font = loadFont('/EBGaramond-Regular.ttf');
echoesLines = loadStrings('asa.txt');
}
function setup() {
createCanvas(600, 9400);
textFont(font);
textSize(14);
}
function draw() {
background(220);
for (let i = 0; i < echoesLines.length; i++){
text(echoesLines[i], 50, 50+i*20);
}
}
function mousePressed(){
shuffle (echoesLines, true);
}
//textLeading((mouseX / width) *64);
//text(echoesLines, 100, 100, 200, 200);