#1785768714
[ dev | c ]
A wile back I got inspired to write some obfuscated c code. So I made drip.c. I tested it with GCC on Windows and Linux. Just link with math and ignore warnings. If you are to lazy to compile it your self, you can watch the gif in the git repo
float F(float x,
float y,float t){float
g=pow(fmod(t,5)/5,5),X=32+
sin((int)t/5* 45.32)*15;return
150/((x-35)*(x-35)*.4+(y-13)*(y-
13))+25*g/((x-X)*(x-X)*.4+(y-13-35
*g)*(y-13-35*g));}main(){float t=0
;int x,y,i ;for(printf("\x1b[?25l"
"\x1b[2J");printf("\x1b[H\x1b[31m"
);t+=.3,usleep(90000))for(y=0;y<43
;y++)for(x=0;x<=80; x++)putchar(x<
80?F(x,y,t)>1?"=+#%*0X@&"[(i=4+(
F(x+1,y,t)-F(x-1,y,t)+F(x,y+1,
t)-F(x,y-1,t))*2.5,i<0?0:i
>8?8:i)]:32:10);}/////
/*///drip.c///*/