xxxxxxxxxx
21
let xPos = [0,20,40];
let yPos = [-10,-50,-100];
let coolChars = ['😋','🌸','✨','💕'];
function setup() {
createCanvas(400, 400);
frameRate(10);
background(0);
textSize(10);
}
function draw() {
fill(255);
for(let i = 0; i < xPos.length; i++){
let letter = random(coolChars);
text(letter,xPos[i],yPos[i]);
yPos[i] = yPos[i] + 15;
}
}
//i++; same as i = i - 1;