xxxxxxxxxx
25
var who = 'Julia'
var x = 10;
function setup() {
createCanvas(400, 400);
textSize(32);
}
function draw(){
background(240);
text('Hey', 10, 30);
fill(0, 102, 153);
text(who+'!', x, 80);
x+=1;
if(x>=width-30){
x=10;
}
}
//text takes 3 arguments
//first - what to print/show
//second, third - x, y coordinate
//by making any of the arguments a variable you can change/animate the text eg. displaying the length of an array