Created
December 24, 2020 16:59
-
-
Save TarVK/33be639b6c56dd9baf61952dbe8e7378 to your computer and use it in GitHub Desktop.
Just some random script. The code is quite bad in an attempt to get it in this shape :P
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
m=" .,-~:;=!*#$@";u=Math;t=u.ceil;c= | |
(x,y,d)=>d>4?1:1<x&&x<=2&&1<y&&y<=2? | |
0:c( (x%1)*3, (y%1)*3, d+1) | |
;f=0 ;w=285;b =u.floor ;i=8 | |
;j=16;while(!0){f+=.02;s=u.pow(3,f%1 | |
)/3;p=new Array(t(w/j)).fill(false). | |
map((v)=>new Array(t(w/i) | |
).fill(.0)); for(x=0;x<w; | |
x++) {for (y=0 ;y<w | |
;y++ ){v= c((( x/w- | |
0.5)*s+0.5)* 3,(y/w)*s*3, | |
0);p[b(y/j)] [b(x/i)]+=v/ | |
(i*j+1);}}e=m.length;process.stdout. | |
write(p.map(v=>"\033[F").join(""));o | |
=(p. map(r=>r .reduce( (c,v | |
)=>m [+b(v*e) ]+c,"")+ "\n" | |
).join(""));process.stdout.write(o)} | |
/**Stupid*code*by*Tar*van*Krieken**/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also created GOL: