壁で反射のあるn体問題もどき (2025/8/4)
https://gyazo.com/283bf5f7a0f900b53c48ff99be923634 https://gyazo.com/ba63c71fe440be8a62fc4d938d61be10 https://gyazo.com/bab6cbb7071ae913d90bb90feefd4a95
https://scrapbox.io/files/6890b9774630e25148e90651.mp4
code:processing
//#Processing
int n=15, i, s;
float p[]=new floatn*4, d; void setup() {
size(800, 800);
for (i=0; i<n*2; i++) {
}
background(0);
colorMode(HSB);
}
void draw() {
noStroke();
fill(0, 9);
square(0, 0, 800);
fill(-1, 20);
translate(400, 400);
for (i=0; i<n; i++)for (s=0; s<n; s++) {
if (i!=s) {
}
fill(i*20, 255, 255, 300/abs(1/(sq(pi+n*2)+sq(pi+n*3)))); }
}