Hey everyone I was just wondering how do I get the words to appear in a horizontal line rather than a vertical line in this code???
any help would be great!
var myText = 'S H O U T';
var words;
function setup() {
createCanvas (windowWidth, windowHeight);
background (0);
textSize (32);
textFont ('Times');
words = myText.split (' ');
}
function draw() {
background (0);
fill (255);
for (i=0; i<words.length; i++) {
if (frameCount >10 *i) {
text (words[i], 20, i*30, width/2, width/2);
}
}
}