function setup() {
createCanvas(400, 400,WEBGL);
}
function draw() {
background(220);
ambientLight(60, 60, 60);
orbitControl()
fill(100,200,255)
pointLight(255, 255, 255, 200, 200, 300);
translate(-width/2-40,-width/2-40,20)
for(let j=0;j<width/20+10;j++){
for (let i=0;i<width/20+10;i++){
push()
translate(i*20,j*20,i*10*abs(sin(frameCount/100)))
sphere(25 -20*sin(frameCount/50),25,24)
pop()
push()
translate(width-i*20,j*20,i*10*abs(cos(frameCount/100)));
sphere(25 -20*cos(frameCount/50),25,24)
pop()
}
}
}