xxxxxxxxxx
function setup() {
createCanvas(500, 500);
}
function draw() {
background(241, 211, 2);
rectMode(CENTER);
fill(85, 55, 57);
strokeWeight(0);
//there is certainly a more concised way to do this
triangle(0, 0, 50, 0, 25, 40);
triangle(50, 0, 100, 0, 75, 40);
triangle(100, 0, 150, 0, 125, 40);
triangle(150, 0, 200, 0, 175, 40);
triangle(200, 0, 250, 0, 225, 40);
triangle(250, 0, 300, 0, 275, 40);
triangle(300, 0, 350, 0, 325, 40);
triangle(350, 0, 400, 0, 375, 40);
triangle(400, 0, 450, 0, 425, 40);
triangle(450, 0, 500, 0, 475, 40);
triangle(0,500, 50, 500, 25, 460);
triangle(50, 500, 100, 500, 75, 460);
triangle(100, 500, 150, 500, 125, 460);
triangle(150, 500, 200, 500, 175, 460);
triangle(200, 500, 250, 500, 225, 460);
triangle(250, 500, 300, 500, 275, 460);
triangle(300, 500, 350, 500, 325, 460);
triangle(350, 500, 400, 500, 375, 460);
triangle(400, 500, 450, 500, 425, 460);
triangle(450, 500, 500, 500, 475, 460);
//table
strokeWeight(8);
stroke(0)
fill(85, 55, 57);
rect(250, 250, 470, 295, 3);
fill(149, 94, 66);
stroke(241, 211, 2);
rect(170, 250, 250, 250, 3);
fill(255);
circle(85, 150, 25);
line(85,150, 85, 200);
line(85, 150, 160, 150);
//disk
fill(35, 32, 32);
circle(170, 250, 200)
strokeWeight(2)
fill(241, 211, 2);
stroke(241, 211, 2)
fill(149, 94, 66);
strokeWeight(8);
circle(170, 250, 50)
//needle
fill(0);
rect(290, 130, 40, 30, 7);
stroke(0);
strokeWeight(8);
line(290, 130, 220, 300);
rect(220, 300, 10, 20, 7)
//knobs&buttons
fill(149, 94, 66);
stroke(241, 211, 2);
rect(400, 250, 60, 250);
strokeWeight(5);
fill(253, 255, 252);
circle(400, 300, 20);
circle(400, 250, 20);
circle(400, 200, 20);
circle(400, 150, 20);
circle(400, 350, 30);
}