xxxxxxxxxx
// DISCLAIMER** The rain does not move on both x and y because rain tends to go straight dowb, also it is one shape becuase a type of ellipse is close to a rain drop and you can't merge two shapes to make a rain drop.
var pen = 100;
var rectObjs = [];
function setup() {
createCanvas( windowWidth,windowHeight );
// Once upon a time, there was a male with the name of Spencer.
}
function draw() {
frameRate(128);
var island = 101 + (sin(frameCount/10)*pen);
background(0,1,island);
//Spencer was a nice guy, he enjoyed playing chess, picking cranberries, and hiking.
for (var i = 0; i <1; i++) {
rectObjs.push({xpos:random(0,5000), ypos:random(100,200), fillColor: random(100)})
//One day Spencer went on a beautiful hike. This hike was in Marin Headlands.
}
frameRate(128);
var island = 101 + (sin(frameCount/10)*pen);
background(0,1,island);
noStroke();
// Spencer drove out and then began his hike.
fill(random(255));
c = random(255);
a = random(255);
e = random(255);
ellipse(1100,200,200,125);
ellipse(1000,150,200,125);
ellipse(1150,120,200,125);
ellipse(575,80,200,125);
ellipse(500,120,200,125);
ellipse(650,100,200,125);
ellipse(275,150,200,125);
ellipse(200,170,200,125);
ellipse(225,200,200,125);
// When he was around 1 hour in the hike, he began to hear and see a storm coming.
fill(0, 190, 0);
ellipse(1100,800,800);
ellipse(300,800,800);
// Oh no! He thought, he decided to just stand and enjoy the natural weather.
fill(200);
rect(410,380,10,70);
rect(415,435,8,50);
rect(405,435,8,50);
rect(410,375,50,6.5);
ellipse(410,340,35,35);
rectMode(CENTER);
fill(200);
for (var i = 0; i <rectObjs.length; i++) {
fill(rectObjs[i].fillColor, 50, 200);
ellipse(rectObjs[i].xpos,rectObjs[i].ypos, 20, 100);
rectObjs[i].ypos += 3;
}
}
// That is how he spent the rest of his day, and I decided to make a project in Open Proccessing to repersent how his day went.
// I hope you enjoyed Mr. Mena-Landry