円運動 (2024/10/29)
https://gyazo.com/8c753dfe60c368026c5771d59c5e9067 https://gyazo.com/67de88b40c6e1c881950b17b10f0fd02 https://gyazo.com/915c56e600d82da51af203584e30ba00
https://scrapbox.io/files/6720ec7b3dfa604d9771c786.mp4
code:processing
//#Processing
float i, j, k, r, t;
void setup() {
size(800, 800, P3D);
}
void draw() {
background(0);
camera(0, 0, 300, 500, 500, 0, 0, 0, -1);
for (j=0; j<800; j+=200)for (i=0; i<800; i+=200)for (k=9; k<150; k+=9) {
stroke(-1, 128*cos(t*99)+128);
noFill();
circle(i+99, j+99, k*2);
fill(-1);
for (r=0; r<TAU; r+=PI/2)circle(i+99+k*sin(r+t*k), j+99+k*cos(r+t*k), 6);
}
t+=.0001;
}