SketchBook

guruguru

let angle = 0;
let r = 80;
let x, y;
let a = 0.375;
function setup(){
createCanvas(400, 400);
noStroke();
background(255);
}
function draw(){
push();
translate(width/2, height/2);
y = sin(radians(angle) * a) * sin(radians(angle)) * r;
x = sin(radians(angle) * a) * cos(radians(angle)) * r;
fill(0,130,120,80)
ellipse(x, y, 5)
pop();
angle += 2;

}