xxxxxxxxxx
50
let r = 0 ;
let g=0 ;
let b=0 ;
function setup() {
let y = 0;
m = 0;
d = 0;
let s = 0;
createCanvas(400, 400);
background("pastel")
frameRate(5)
}
function draw() {
// left
for (let x = 0; x < width / 2; x += 30) {
s = random(10, 90);
for (let y = 0; y < height; y += 6) {
fill(random(200, 255), random(50), random(180),40);
circle(x, y, s);
}
}
//right blue
for (let x = width/2 ; x < width; x += 10) {
s = random(0, 30);
for (let y = 0; y < height; y += 4) {
fill(30, random(60,80), random(190,230),50);
circle(x, y, s);
}}
// make circles center
h=random (20,80)
h+=20
centerh(h)
// hole
}
function centerh (k){
//fill(random(70,140), random(190,255), random(100, 255));
fill(r,g,b,95)
circle(width/2, height/2, k);
r+=50;
g+=30 ;
b++ ;
}