xxxxxxxxxx
//Declare utils as a variable
var utils = new p5.Utils();
let grey;
let r;
let green;
let blue;
let pink;
let orange;
let db;
function setup() {
createCanvas(600,600);
background(600);
utils.enableRuler();
grey =color(random (0,255));
green = color(random(1,300));
reddi =color(random(0,700));
blue = color(0,166,216);
pink = color (random(0, 255));
orange = color(255,157,0);
db = color(255,255,0);
}
function draw() {
//face//
fill(grey);
rect(200,251,300,300);
//eyes//
fill(green);
circle(400,319,50);
circle(300,319,70);
//mouth//
fill(reddi);
triangle(310,530,410,529,360,485);
//ears//
fill(blue);
rect(173,375,27,24);
rect(501,326,27,24);
//head//
fill(pink);
triangle(270,250,450,252,341,90);
fill(orange);
triangle(292,251,410,252,340,154);
//nose//
fill(db);
rect(340,404,30,10);
}