xxxxxxxxxx
19
var myText = [];
var randomLineOfText;
function preload(){
myText = loadStrings('dead.txt');
}
function setup() {
createCanvas(400, 400);
randomLineOfText = round(random(0,myText.length));
print(myText[randomLineOfText]);
textAlign(CENTER,CENTER);
}
function draw() {
background(220);
fill(0);
text(myText[randomLineOfText],width/2,height/2);
}