createCanvas(windowWidth, windowHeight);
Velocity[i] = random(1,20);
for (i = 0; i < 300; i++) {
rain[i] = new Rain(random(50, windowWidth*3), random(0, -3000));
for (i = 0; i < rain.length; i++) {
ellipse(x+50, y-20, 80, 80);
ellipse(x+120, y, 100, 90);
ellipse(x-50, y+50, 100, 120);
ellipse(x+40, y+50, 140, 150);
ellipse(x+140, y+50, 140, 120);
ellipse(x1, y1, 100, 80);
ellipse(x1+50, y1-20, 80, 80);
ellipse(x1+120, y1, 100, 90);
ellipse(x1-50, y1+50, 100, 120);
ellipse(x1+40, y1+50, 140, 150);
ellipse(x1+140, y1+50, 140, 120);
ellipse(x2, y2, 100, 80);
ellipse(x2+50, y2-20, 80, 80);
ellipse(x2+120, y2, 100, 90);
ellipse(x2-50, y2+50, 100, 120);
ellipse(x2+40, y2+50, 140, 150);
ellipse(x2+140, y2+50, 140, 120);
fill(170, 150, 146, 240);
rect(0, 530, windowWidth, 530);
this.rainDrop = function() {
colorNum = int(random(1,60));
fill(r[colorNum],g[colorNum],b[colorNum],a[colorNum]);
triangle(this.x-5, this.y, this.x+5, this.y, this.x, this.y-20);
arc(this.x, this.y, 10, 10, 0, PI, PIE);
this.splash = function() {
stroke(245, this.opacity);
ellipse(this.x, 550, this.r * 2, this.r / 2);
this.opacity = this.opacity - 10;
this.y = random(0, -100);