xxxxxxxxxx
44
let font
let curIndex = 0;
function preload() {
font = loadFont('/EBGaramond-VariableFont_wght.ttf');
echoesLines = loadStrings('si me preguntan.txt');
}
function setup() {
createCanvas(600, 600, WEBGL);
textFont(font);
textSize(15);
// stroke(252, 16, 16);
strokeWeight(0);
fill(255);
background(0);
}
function draw() {
let time = millis();
//rotateX(time / 2000);
//rotateZ(time / 1234);
shearX(80 / 30);
shearY(frameCount / 200);
// tambien funciona con 2000, con 100 y con 5000
for (let i = 0; i < echoesLines.length; i++){
text(echoesLines[i], -30*i, -15*i, 600, 600);
}
//noLoop();
}
function mouseMoved(){
loop();
}