Eerst was het dit:
//Declare variables
var x;
var y;
function setup() {
createCanvas(600, 120);
//Initialize variables
x = random(50, 550);
y = random(50, 70);
noStroke();
}
function draw() {
background(131, 175, 155);//greenish blue
//Face
fill(249,205,173);//rosy beige
ellipse(x, y, 100, 100);
//Eye 1
fill(30);//dark gray
ellipse(x, y+10, 10, 10);
//Eye 2
ellipse(x+20, y+10, 10, 10);
//Mouth
fill(252, 157, 154);//light pink
arc(x, y+25, 30, 30, 0, radians(180), PIE);
}
en wij hebben dit:
//Declare variables
var x;
var y;
function setup() {
createCanvas(600, 120);
//Initialize variables
x = random(50, 550);
y = random(50, 70);
noStroke();
}
function draw() {
background(175, 100, 220);
//Face
fill(220, 100, 33);
ellipse(x, y, 100, 100);
//Eye 1
fill(92, 64, 51);
ellipse(x, y+10, 10, 10);
//Eye 2
ellipse(x+20, y+10, 10, 10);
//Mouth
fill(255, 127, 127);
arc(x, y+25, 30, 30, 0, radians(180), PIE);
}