集積回路風の幾何学模様 (2024/12/5)
https://gyazo.com/4c0d4f6d7d6b353a470bf4c9a00d3f27 https://gyazo.com/815bb4e81b1bcf45ce10c60d4ab35603 https://gyazo.com/58a8090cebf554ca76cda0570aa07c7a
https://scrapbox.io/files/6751a49d9935e8c4bac69f51.mp4
code:processing
//#Processing
float t;
void setup() {
size(800, 800);
}
void draw() {
fill(0, 7);
square(0, 0, 800);
noFill();
stroke(-1);
a(400, 400, 200);
t+=.01;
}
void a(float x, float y, float d) {
if (d>5) {
push();
translate(x, y);
b(d, d, 4);
b(d, -d, 5);
b(-d, d, 6);
b(-d, -d, 7);
pop();
}
}
void b(float p, float q, float r) {
if (noise(p, q, t)<r/9) {
square(p, q, abs(p));
a(p, q, abs(p)/2);
}
}