Facebook
From Pranav More, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 129
  1. size(500, 500);
  2.  
  3.  
  4. for (int x = 40; x <=400 ; x = x+40) {
  5.   for(int y = 40; y<=400; y = y+40) {
  6.  
  7.     rect(x, y,40, 40);
  8.    
  9.   }
  10. }
  11.  
  12. strokeWeight(3);
  13. line(40, 40, 40, 440);
  14. line(40, 440, 440, 440);
  15.  
  16. strokeWeight(2);
  17. fill(#B7AA16);
  18. rect(40, 400,140, 40);
  19. fill(#B2A516);
  20. rect(40, 360,200, 40);
  21. fill(#A59912);
  22. rect(40, 320,160, 40);
  23. fill(#9B8F10);
  24. rect(40, 280,130, 40);
  25. fill(#958B0F);
  26. rect(40, 240,260, 40);
  27. fill(#897F0F);
  28. rect(40, 200,180, 40);
  29. fill(#81770D);
  30. rect(40, 160,300, 40);
  31. fill(#6F670C);
  32. rect(40, 120,350, 40);
  33.  
  34. fill(0);
  35. text('0', 40, 460);
  36. text("50", 80, 460);
  37. text("100", 120, 460);
  38. text("150", 160, 460);
  39. text("200", 200, 460);
  40. text("250", 240, 460);
  41. text("300", 280, 460);
  42. text("350", 320, 460);
  43. text("400", 360, 460);
  44. text("450", 400, 460);
  45. strokeWeight(6);
  46. text("NO OF DEATHS", 200, 485);
  47.  
  48. strokeWeight(1);
  49. text("2022", 10, 150);
  50. text("2021", 10, 190);
  51. text("2020", 10, 230);
  52. text("2019", 10, 270);
  53. text("2018", 10, 310);
  54. text("2017", 10, 350);
  55. text("2016", 10, 390);
  56. text("2015", 10, 430);
  57. strokeWeight(10);
  58. text("YEAR", 10, 20);
  59.  
  60. strokeWeight(10);
  61. text("Water Contamination", 180, 25);
  62.