Facebook
From Bishnu Parasad Sapkota, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 143
  1. size(600, 600);
  2. background (220);
  3.  
  4. strokeWeight(5);
  5. strokeCap(SQUARE);
  6. line(100,50, 100,500);
  7. line(100,500, 550,500);
  8. fill(0);
  9.  
  10. text("Y", 100,40);
  11. text("X", 555,500);
  12.  
  13. text("Graph", 300, 30);
  14.  fill(200,0,0);
  15.  text("4", 160, 375);
  16. rect(150,380,50,120);
  17. fill(200,200,0);
  18.  
  19. text("6", 210, 335);
  20. rect(200,340,50,160);
  21. fill(200,0,200);
  22.  
  23. text("8", 260, 245);
  24.  
  25. rect(250,250,50,250);
  26. fill(0,200,200);
  27.  
  28. text("10", 310, 95);
  29. rect(300,100,50,400);
  30. fill(255,200,0);
  31.  
  32. text("9", 360, 170);
  33. rect(350,175,50,325);
  34. fill(0,255,0);
  35.  
  36. text("6", 410, 335);
  37. rect(400,340,50,160);
  38. fill(255,0,0);
  39.  
  40.  text("4", 460, 375);
  41. rect(450,380,50,120);