xxxxxxxxxx
let headx = 130
let heady = 130
let headWidth = 350
let headHeight = 300
let spacingX = 35
function setup() {
createCanvas(600, 600);
background(252, 223, 166);
//eyes
let eyesize = random (20,120);
//Random eye colors
let RandomR = random(255);
let RandomG = random (255);
let RandomB = random(255);
//Random mouth color
let RandomRM = random(255);
let RandomGM = random (255);
let RandomBM = random(255);
noStroke();
// Mr.Robot head
fill(88, 139, 139);
rect(headx,heady,headWidth,headHeight);
//Mr.Robot Mouth
fill(RandomRM, RandomGM, RandomBM);
rect(headx+spacingX,heady+175,headWidth-spacingX*2,100);
//Mr.Robot Eyes
fill(RandomR, RandomG, RandomB);
circle(headx+spacingX+eyesize/2,220,eyesize);
fill(RandomR, RandomG, RandomB);
circle(480-spacingX-eyesize/2,220,eyesize);
}
function draw()
{
}