雲海の渓谷 (2024/11/21)
https://gyazo.com/520ba7a55c5b70bc6e518029b8e2afd0 https://gyazo.com/a64742d8a85a36a32e2bd8e2425a0a05 https://gyazo.com/0551684d214c072aecb2d7e5217fe793
https://scrapbox.io/files/673e028c4bad185f8acc76ba.mp4
code:processing
//#Processing
float x, y, r, t, d=2;
void setup() {
size(800, 800, P3D);
}
void draw() {
background(0);
noStroke();
camera(400, 800, 70, 400, 600, 0, 0, 0, -1);
lights();
for (x=0; x<800; x+=d) {
beginShape(10);
for (y=0; y<800-1; y+=d) {
fill(y/3+9*constrain(tan(r=TAU*noise(x*.01, y*.01, t)), 0, 5), y/3+5*constrain(tan(r), 0, 5), y/3);
vertex(x+d*sin(r), y+d*cos(r), constrain(tan(r), 0, 5));
vertex(x+d+d*sin(r=TAU*noise((x+d)*.01, y*.01, t)), y+d*cos(r), constrain(tan(r), 0, 5));
}
endShape();
}
t+=.005;
}