xxxxxxxxxx
18
function setup() {
noCanvas();
for (let i = 0; i < 10; i++) {
let p = createP("blue");
p.class("blue");
p.mousePressed(becomeRed.bind(p));
}
}
function becomeRed() {
this.removeClass("blue");
this.class("red");
this.html("red");
}
function draw() {
}