SketchBook

なみなみ

let angle = 0
let angle1 = 0
let angle2 = 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) * 7.5)*sin(radians(angle) * 2)*sin(radians(angle) * 4)*150
x = -sin(radians(angle) * 7.5)*sin(radians(angle) * 3)*sin(radians(angle) * 2)*150
fill(130,120,0,80)
ellipse(x, y, 5)
pop
angle += 0.3;
y = sin(radians(angle1) * a) * sin(radians(angle1)) * 110;
x = sin(radians(angle1) * a) * cos(radians(angle1)) * 110;
fill(0,130,120,70)
ellipse(x, y, 5)
pop
angle1 += 1.5;

}