xxxxxxxxxx
68
function setup() {
createCanvas(400, 400, WEBGL);
}
function draw() {
background(255, 204, 0);
// Donut Torus
push();
stroke(80, 80, 80);
strokeWeight(0.4);
translate(-100, 10);
rotateX(-2.3);
fill(255, 153, 255);
torus(30, 15);
pop();
// Background Circles
push();
fill(225, 229, 204, 80);
noStroke();
for (let k = 0; k < 4; k++) {
for (let j = 0; j < 4; j++) {
for (let i = 0; i < 10; i++) {
circle(-150 + k * 100, -150 + j * 100, 100 - i * 10);
}
}
}
pop();
// Person
//
// Head
push();
fill(243, 241, 231);
strokeWeight(5);
stroke(102, 89, 20);
circle(100, -30, 200);
pop();
//
// Eyes
push();
strokeWeight(0.5);
fill(255, 255, 255);
circle(60, -70, 50);
circle(140, -70, 50);
fill(0, 0, 0);
circle(60, -70, 15);
circle(140, -70, 15);
pop();
//
// Mouth
push();
strokeWeight(0.5);
fill(255, 255, 255);
arc(100, -10, 100, 120, 0, PI, CHORD);
pop();
// Laser Eyes
push();
fill(255, 0, 0);
stroke(255, 0, 0);
strokeWeight(5);
line(60, -70, -85, 0);
line(140, -70, -85, 0);
pop();
}