xxxxxxxxxx
// class Tear {
// constructor(){
// this.x= frameCount/5*20;
// this.y= width/2+sin(frameCount/6)*100*randomGaussian(0.8,0.2)+frameCount;
// this.s= randomGaussian(40,5);
// this.color= ['9f84bd','#c09bd8','#ebc3db','#ede3e9','#e6e4ce'];
// }
// move(){
// }
// display(){
// ellipse(this.x, this.y, this.s);
// }
// }
// function setup() {
// createCanvas(windowWidth, windowHeight);
// background(0);
// drop= new Tear();
// }
// function draw() {
// drop.display();
// }
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
}
function draw() {
let ex= frameCount/5*20;
let ey= width/5+sin(frameCount/6)*100*randomGaussian(0.8,0.2)+frameCount/20;
let s=randomGaussian(20,5);
let color=['9f84bd','#c09bd8','#ebc3db','#ede3e9','#e6e4ce'];
let colorStroke=['50514f','#b4adea','#fdfff7','#59ffa0','#ffed65'];
for(i=0; i<5;i++){
fill(color[i])
ellipse(ex,ey+i*100,s)
};
}