xxxxxxxxxx
52
function setup() {
createCanvas(600, 600);
}
function draw() {
strokeWeight(4);
noFill();
background(220);
translate(width/6, height/6);
triangle(-60, +60, +60, +60, 0, -60);
translate(width/3, 0);
rect(-60, -40, 120, 80);
translate(width/3, 0);
circle(0, 0, 120);
translate(0, height/3);
line(-30, -60, 30, 60);
line(30, 60, 30, -60);
line(-30, -60, -30, 60);
line(30, -60, 60, 0);
line(-30, 60, -60, 0);
translate(-width/3, 0);
line(-60, 60, -60, -60);
line(60, 60, 60, -60);
bezier(-60, 60, -60, -60, 60, 60, 60, -60);
translate(-width/3, 0);
line(-60, -60, 60, 60);
push();
strokeWeight(8);
point(30, -30);
point(-30, 30);
pop();
translate(0, height/3);
arc(0, 0, 120, 120, QUARTER_PI, PI + HALF_PI + QUARTER_PI, PIE);
translate(width/3, 0);
quad(-60, -60, 20, -60, 60, 60, -60, 60);
translate(width/3, 0);
push();
rotate(PI / 3.0);
ellipse(0, 0, 240/sqrt(3), 60);
}