xxxxxxxxxx
76
//Each one represents the use of single use plastic in a week, the closer it is to the bottom the later in the day it is being used. (for example the foliage in the trees is lunch time).
let sixmorn= [3,3,0,3,0,0,0];
let sevenmorn= [4,4,0,4,0,0,0];
//let eightmorn= [0,0,0,0,0,0,0];
// let ninemorn= [0,0,0,0,0,0,0];
let tenmorn= [0,3,5,0,0,0,0];
//let elevenmorn=[0,0,0,0,0,0,0];
let noon=[10,5,10,12,0,20,0];
let onepm= [2,0,0,3,0,2,3];
let twopm= [0,0,2,0,3,3,2];
let threepm=[3,3,0,0,2,0,0];
let fourpm=[0,0,0,1,0,0,1];
let fivepm=[0,0,0,10,2,2,0];
let sixpm= [0,0,0,3,0,0,0];
//let sevenpm=[0,0,0,0,0,0,0];
let eightpm=[0,0,12,0,0,0,0];
let ninepm=[12,0,3,0,5,4,4];
let tenpm=[0,15,0,0,3,0,2];
let elevenpm=[0,0,0,3,2,0,0];
let midnight=[3,0,0,0,4,0,0];
let onetofive=[0,0,0,0,3,0,0];
j=0;
function setup() {
createCanvas(600, 600);
}
function draw() {
//background(255, 187, 92);
background(235, 187, 120);
noStroke();
fill(116, 181, 155);
rect(0,300,600,152);
fill(19, 19, 66);
rect(0,450,600,200);
fill(255, 248, 230);
ellipse(500,50,30);
//fill(110, 186, 158);
fill(255);
j++;
for (j=0; j<= eightpm.length;j++){
rect (0,400,600,10, ninepm[j]);
} for (j=0; j<= tenpm.length;j++) {
rect (j*95,550,55,10,elevenpm[j]);
} for (j=0; j<= midnight.length;j++) {
fill(255);
}
j++;
for (j=5; j<= sixmorn.length;j++){
rect (0,450,600,10,sixpm[j]);
} for (j=0; j<= tenpm.length;j++) {
rect (j*75,380,15,60,onetofive[j]);
} for (j=0; j<= sevenmorn.length;j++) {
fill(255);
}
//land
fill(191, 115, 71);
j++;
for (j=5; j<= tenmorn.length;j++){
rect (590,220,30,120,noon[j]);
} for (j=0; j<= onepm.length;j++) {
rect (j*105,160,30,180,twopm[j]);
} for (j=0; j<= threepm.length;j++) {
fill(42, 163, 145);
}
j++;
for (j=0; j<= fourpm.length;j++){
rect (0,320,600,20, fivepm[j]);
} for (j=0; j<= tenpm.length;j++) {
rect (j*95,120,90,100,sixpm[j]);
} for (j=0; j<= noon.length;j++) {
fill(104, 153, 126);
}
}