xxxxxxxxxx
let circleR;//circle Radius
function setup() {
createCanvas(windowWidth,windowHeight);//size of the canvas two numbers, width and height
//color of the background
}
function draw() {
//background(255);
//white pulse circle
colorMode(HSB);
noFill();
stroke(125+sin(millis()*0.008)*125,255,255,15);
circle(width/2, height/2,
200+sin(millis()*0.008)*250);
//bigger circle
stroke(0,15);
circle(width/2, height/2, 300);
circleR = 195+noise(millis()*0.00018) *75;
circleR2 = 150;
colorMode(RGB);
noStroke();
//blue circle
fill(0,0,255,75);
circle(width/2+circleR2*cos(TWO_PI/360+millis()*0.008),height/2+circleR2*sin(TWO_PI/360+millis()*0.008),40);
//green circle
fill(0,255,0,75);
//formula is
//position+radius*sin
//for the 2 axis
circle(width/2+circleR*cos(TWO_PI/360+millis()*0.008),height/2+circleR*sin(TWO_PI/360+millis()*0.008),40);
let randAngle=random(TWO_PI);
fill(255,0,0,75);
let angle=PI;
circle(width/2+150*cos(randAngle),
height/2+150*sin(randAngle),40);
}