xxxxxxxxxx
63
function setup() {
createCanvas(600, 600);
}
function draw() {
background(220);
ellipseMode(CORNER);
strokeWeight(16);
noFill();
stroke(color(146, 84, 162));
// Cab
// Top
line(120, 120, 290, 120);
// OverhangLeft
line(120, 120, 120, 150);
// OverhangBottom
line(120, 150, 140, 150);
// Left
line(140, 150, 140, 220);
// Right
line(290, 120, 290, 200);
// big wheel
ellipse(120, 220, 180);
stroke(color(248, 158, 83));
// horizontal above wheels
line(340, 315, 420, 315);
// Engine
// Left
line(350, 230, 350, 290);
// Centre
line(380, 230, 380, 290);
// right
line(410, 230, 410, 290);
stroke(color(51, 197, 242));
// small wheel L
ellipse(310, 340, 60);
// small wheel R
ellipse(390, 340, 60);
// Chimney
// Left
line(325, 120, 345, 205);
// Centre
line(325, 120, 435, 120);
// right
line(435, 120, 415, 205);
stroke(color(237, 100, 163));
// Cow Catcher
// Top
line(450, 210, 470, 260);
// Middle
line(470, 260, 450, 315);
// Bottom
line(450, 315, 490, 360);
}