xxxxxxxxxx
13
function setup() {
createCanvas(200, 200);
textAlign(CENTER, CENTER);
}
function draw() {
background(220);
fill(237, 34, 93);
textSize(20);
// get the current frame rate as an integer.
let fps = parseInt(frameRate(), 10);
text("frameRate: " + fps, width/2, height/2);
}