つぶやきProcessing その2 (2026/3/30)
https://gyazo.com/7f57b95bc6973fd4eb6c16435c858947 https://gyazo.com/2b7c5e110f162e4a3c61ca0632562bef https://gyazo.com/8d641d37d3a16f773347c67ea5502943
https://scrapbox.io/files/69ca8f109ea0767ac85ccf7b.mp4
t+=.1;をt++;とかにすると古いPCでも余裕で動く。
code:processing
//#つぶやきProcessing
float x, y, t;
void setup() {
size(800, 800, P3D);
}
void draw() {
background(-1);
camera(1000, 0, 500, 1000, 500, 0, 0, 0, -1);
for (x=0; x<2000; x+=5)for (y=0; y<2000; y+=5)line(x, y, a(0), x+5, y, a(5));
t+=.1;
}
float a(float i) {
float h=200*noise((x+i)/99, y/99, t/99)-99;
return h<0?0:h;
}