xxxxxxxxxx
14
function setup() {
createCanvas(300, 300);
background(200,200,0);
noStroke();
}
function draw() {
// background(220); // disable automatic clear
circle(mouseX,mouseY,5) // lets call it painting mode
text(nf(frameRate(),1,1)+" fps",5,20); // unreadable
// but now for a updated text need to clear area first
rect( width-130,3,128,23);
text(year()+"-"+month()+"-"+day()+" "+hour()+":"+minute()+":"+second(),width-120,20);
}