var drops = [];
draw = function() {
background(21, 50, 255);
if(frameCount%5===floor(random(0, 5))){
drops.push({
x:random(0, 400),
y:0
});
}
if(frameCount%5===floor(random(0, 5))){
drops.push({
x:random(0, 400),
y:0
});
}
if(frameCount%5===floor(random(0, 5))){
drops.push({
x:random(0, 400),
y:0
});
}
if(frameCount%5===floor(random(0, 5))){
drops.push({
x:random(0, 400),
y:0
});
}
if(frameCount%5===floor(random(0, 5))){
drops.push({
x:random(0, 400),
y:0
});
}
if(frameCount%5===floor(random(0, 5))){
drops.push({
x:random(0, 400),
y:0
});
}
if(frameCount%5===floor(random(0, 5))){
drops.push({
x:random(0, 400),
y:0
});
}
if(frameCount%5===floor(random(0, 5))){
drops.push({
x:random(0, 400),
y:0
});
}
if(frameCount%5===floor(random(0, 5))){
drops.push({
x:random(0, 400),
y:0
});
}
for(var i = 0;i=402){
drops.splice(i, 1);
}
}
};
Latest Post