xxxxxxxxxx
function setup() {
createCanvas(600, 600);
background(200);
}
function draw() {
var eye1 = random(50,120);
var eye2 = random(55,135);
//ears
stroke('#612755');
strokeWeight(40);
line(175,240,175,315);
line(425,240,425,315);
//face
fill('#BA239C');
noStroke();
rect(175,160, 250, 280,20);
//eyes
fill(211,158,233);
stroke('#91768C');
strokeWeight(10);
circle(250,250,eye1);
circle(350,250,eye2);
//mouth
noStroke();
fill(90,90,219);
rect(250,370, 100, 30,10);
//antena
stroke('#BA239C');
strokeWeight(30);
line(300, 160, 300, 120);
fill('white');
circle(300,115,40)
noLoop();
}
function mouseClicked() {
redraw();
}