xxxxxxxxxx
25
function setup() {
createCanvas(400, 400);
background("white");
randomSeed(0);
}
function draw() {
strokeWeight(3);
fill(random(0, 360), random(10, 200), random(90, 100));
drawSmileyFace();
drawSmileyFace(random(width), random(height), random(50, 100));
}
function mouseClicked() {
}
function drawSmileyFace(x, y, d) {
circle(x, y, d);
circle(x-d*0.2, y-d*0.2, d*0.2);
circle(x+d*0.2, y-d*0.2, d*0.2);
}