- size(600, 600);
- background (220);
- strokeWeight(5);
- strokeCap(SQUARE);
- line(100,50, 100,500);
- line(100,500, 550,500);
- fill(0);
- text("Y", 100,40);
- text("X", 555,500);
- text("Graph", 300, 30);
- fill(200,0,0);
- text("4", 160, 375);
- rect(150,380,50,120);
- fill(200,200,0);
- text("6", 210, 335);
- rect(200,340,50,160);
- fill(200,0,200);
- text("8", 260, 245);
- rect(250,250,50,250);
- fill(0,200,200);
- text("10", 310, 95);
- rect(300,100,50,400);
- fill(255,200,0);
- text("9", 360, 170);
- rect(350,175,50,325);
- fill(0,255,0);
- text("6", 410, 335);
- rect(400,340,50,160);
- fill(255,0,0);
- text("4", 460, 375);
- rect(450,380,50,120);