Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <unistd.h>
  4. #include <sys/ioctl.h>
  5.  
  6.              main() {
  7.          short a[4];ioctl
  8.       (0,TIOCGWINSZ,&a);int
  9.     b,c,d=*a,e=a[1];float f,g,
  10.   h,i=d/2+d%2+1,j=d/5-1,k=0,l=e/
  11.  2,m=d/4,n=.01*e,o=0,p=.1;while (
  12. printf("\x1b[H\x1B[?25l"),!usleep(
  13. 79383)){for (b=c=0;h=2*(m-c)/i,f=-
  14. .3*(g=(l-b)/i)+.954*h,c<d;c+=(b=++
  15. b%e)==0)printf("\x1B[%dm ",g*g>1-h
  16. *h?c>d-j?b<d-c||d-c>e-b?40:100:b<j
  17. ||b>e-j?40:g*(g+.6)+.09+h*h<1?100:
  18.  47:((int)(9-k+(.954*g+.3*h)/sqrt
  19.   (1-f*f))+(int)(2+f*2))%2==0?107
  20.     :101);k+=p,m+=o,o=m>d-2*j?
  21.       -.04*d:o+.002*d;n=(l+=
  22.          n)<i||l>e-i?p=-p
  23.              ,-n:n;}}