xxxxxxxxxx
27
let poemTexts = [
"Sometimes",
"the short poems",
"are the hardest",
"to write",
"change one word",
"and the whole poem",
"avocados.",
];
function setup() {
createCanvas(400, 400);
textSize(20);
}
function draw() {
background(220);
for (let i = 0; i < poemTexts.length; i++) {
// The i value is used for index values and y position values.
text(poemTexts[i], 50, 80 + i * 30);
}
text("- Atticus", 250, 350);
noLoop();
}