Facebook
From Prisca Hope, 1 Week ago, written in Plain Text.
This paste is a reply to Activity 4 from Prisca Hope - view diff
Embed
Download Paste or View Raw
Hits: 125
  1. size(500, 325);
  2. background (245);
  3.  
  4.  //axis
  5. stroke(204,0,153);
  6. strokeWeight (5);
  7. line (width*0.2,height*0.076,width*0.2,height*0.769);
  8. triangle (width*0.199,height*0.076,width*0.200,height*0.075,width*0.201,height*0.076);
  9. line (width*0.200,height*0.769,width*0.8,height*0.769);
  10. triangle (width*0.8,height*0.767,width*0.801,height*0.769,width*0.8,height*0.770);
  11.  
  12.  //ruler
  13. float y = height*0.07692308;
  14. float distance= height*0.07692308;
  15.  
  16. strokeWeight(0.5);
  17. line (width*0.2,y,width*0.800,y);
  18. fill(0);
  19. text ("9",width*0.185,y);
  20.  
  21. y=y+distance;
  22. line (width*0.2,y,width*0.800,y);
  23. fill(0);
  24. text ("8",width*0.185,y);
  25.  
  26. y=y+distance;
  27. line (width*0.2,y,width*0.800,y);
  28. fill(0);
  29. text ("7",width*0.185,y);
  30.  
  31. y=y+distance;
  32. line (width*0.2,y,width*0.800,y);
  33. fill(0);
  34. text ("6",width*0.185,y);
  35.  
  36. y=y+distance;
  37. line (width*0.2,y,width*0.800,y);
  38. fill(0);
  39. text ("5",width*0.185,y);
  40.  
  41. y=y+distance;
  42. line (width*0.2,y,width*0.800,y);
  43. fill(0);
  44. text ("4",width*0.185,y);
  45.  
  46. y=y+distance;
  47. line (width*0.2,y,width*0.800,y);
  48. fill(0);
  49. text ("3",width*0.185,y);
  50.  
  51. y=y+distance;
  52. line (width*0.2,y,width*0.800,y);
  53. fill(0);
  54. text ("2",width*0.185,y);
  55.  
  56. y=y+distance;
  57. line (width*0.2,y,width*0.800,y);
  58. fill(0);
  59. text ("1",width*0.185,y);
  60.  
  61. y=y+distance;
  62. line (width*0.2,y,width*0.800,y);
  63. fill(0);
  64. text ("0",width*0.185,y);
  65.  
  66.  //chart
  67. strokeWeight(width*0.002);
  68. float x =width*0.200;
  69. float w=width*0.050;
  70. float distB=width*0.050;
  71.  
  72. fill(250,250,0);
  73. x=x+w+distB;
  74. rect (x,height*0.307,w,height*0.461);
  75. fill(0,250,250);
  76. x=x+w;
  77. rect (x,height*0.230,w,height*0.538);
  78.  
  79. fill(250,250,0);
  80. x=x+distB+w;
  81. rect (x,height*0.230,w,height*0.538);
  82. fill(0,250,250);
  83. x=x+w;
  84. rect (x,height*0.307,w,height*0.461);
  85.  
  86. fill(250,250,0);
  87. x=x+distB+w;
  88. rect (x,height*0.153,w,height*0.615);
  89. fill(0,250,250);
  90. x=x+w;
  91. rect (x,height*0.307,w,height*0.461);
  92.  
  93. //label
  94. float a=width*0.325;
  95. float c=width*0.150;
  96. fill(0);
  97. text("Bourbon",a,height*0.8);
  98. a=a+c;
  99. text ("Digestive chocolats",a,height*0.8);
  100. a=a+c;
  101. text ("Short Bread", a,height*0.8);
  102.  
  103. text("Biscuits préférés des élèves", width*0.400,height*0.046);
  104. save("activity5");

Replies to Activity 5 rss

Title Name Language When
Activity 6 Prisca Hope text 1 Week ago.