足跡 (2026/3/31)
https://gyazo.com/5d91f6334c89adbc5fb5e7c14b24d9d4 https://gyazo.com/87d53177ee8b1182c91a38c5c086a546 https://gyazo.com/4846fac93baf90537094f635fc72c43b
https://scrapbox.io/files/69cbdb809ea0767ac85ee126.mp4
code:processing
//#Processing
float x, y, r;
int t;
void setup() {
size(800, 800);
background(-1);
frameRate(2);
}
void draw() {
fill(-1, 30);
square(-1, -1, 802);
fill(0);
r=TAU*noise(x/400, y/400);
f(x, y, r);
if (abs(x+=50*cos(r))>400)x*=-1;
if (abs(y+=50*sin(r))>400)y*=-1;
t++;
}
void f(float p, float q, float r) {
push();
translate(p+400, q+400);
rotate(r+PI/2);
translate(t%2*50, 0);
ellipse(0, 0, 15, 12);
for (float i=0; i<4; i++)ellipse(i*8-12, abs(i-1.5)*8-20, 3, 5);
pop();
}