xxxxxxxxxx
19
function setup() {
createCanvas(400, 400);
background(0);
}
function draw() {
fill(50,200);
ellipse(5,5,50);
background(255);
}
function mousePressed(){background(0);}
//why this sketch only shows the background(255)
// "P5 and most animation soft wares have the moment to choose what shows to the viewer. And that happens at the very end of the "draw function". So no matter what you have in draw, you don’t see internal changes, you only see the end result!"
// ----Coding train!