xxxxxxxxxx
// Declare Utils as a variable
var utils = new p5.Utils();
function setup() {
createCanvas(400,600);
background(400);
utils.enableRuler();
}
function draw() {
strokeWeight(15);
fill(0,255,0);
rect(0,0,340,500);
fill(255,20,147);
rect(0,500,140,600);
fill(255,0,0);
rect(140,500,200,50);
fill(238,130,238);
rect(140,550,200,600);
fill(0,191,255);
rect(340,0,400,600);
}