つぶやきProcessing その2 (2024/11/18)
https://gyazo.com/fea0b2d499108ff27cf3a5ddbdf42dc8 https://gyazo.com/becc30ef909f65918d8ac97543bce396 https://gyazo.com/30cc6836f0ce9cfd42212730d3af83f6
https://scrapbox.io/files/673b3c3a7c8a54f9cd3aff05.mp4
code:processing
//#つぶやきProcessing
float x, y, t, c;
void setup() {
size(800, 800, P3D);
}
void draw() {
background(0);
stroke(-1);
camera(0, 500, 200, 0, 200, 0, 0, 0, -1);
for (x=-500; x<500; x++)for (y=-500; y<500; y++) {
c=5*(sin(dist(x, y, -200, 0)/(5*sin(t)+8))+sin(dist(x, y, 200, 0)/(5*cos(t)+8)));
point(x, y, c);
}
t+=.01;
}