xxxxxxxxxx
35
let angle = 0;
let angleV = 0.1;
function setup() {
createCanvas(400, 400);
frameRate(5);
//background(0, 10);
}
function draw() {
//line(mouseX, mouseY, 0, 0);
background(0, 10);
translate(200, 200);
fill(0, 0, 0, 100);
circle(-200, 0, random(0, 400));
stroke(255);
// noStroke();
fill(random(0, 50), 0, 100, 100);
//noFill();
let y = map(sin(angle), -1, 1, -200, 200);
circle(-180, y, random(0, 32));
circle(150, y, random(0, 32));
let x = map(sin(angle), -1, 1, 400, -400);
circle(x, -180, random(0, 32));
circle(x, 170, random(0, 32));
//let increment=TWO_PI/60;
angle += angleV;
//angleV=0.00001;
//console.log(frameRate());
}