先上图,看效果:
源代码
chunli@linux:~$ cat main.c #include <stdio.h> #include <math.h> int c,p,i,j,n,F=40,k,m; float a,x,y,S=0,V=0; void main() { for(;F--;usleep(50000),F?puts("\x1b[25A"):0) { for(S+=V+=(1-S)/10-V/4,j=0;j<72;j+=3,putchar(10)) { for(i=0;x=S*(i-27),i++<73;putchar(c[" ‘‘\".$u$"])) { for(c=0,n=3;n--;) { for(y=S*(j+n-36),k=0,c^=(136*x*x+84*y*y<92033)<<n,p=6,m=0; m<8; k++["<[\\]O=IKNAL;KNRbF8EbGEROQ@BSX""XtG!#t3!^"]/1.16-68> x*cos(a)+y*sin(a)?k=p,p="<AFJPTX"[m++]-50:k==p?c^=1<<n,m=8:0) { a=(k["O:85!fI,wfO8!yZfO8!f*hXK3&fO;:O;#hP;\"i[by asloane"]-79)/14.64; } } } } } return; } chunli@linux:~$ gcc main.c -lm && ./a.out ...uuuu$$$$$uuuu... $$$$$$uuuuuu ..u$$$$$$$$$$$$$$$$$$$$$$$u.. $$$$$$$$$$$" .u$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$u. $$$$$$$$$$$ .$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$. $$$$$$$$$$$ .$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$. $$$$$$$$$$ u$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$u $$$$$$$$$$ .$$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$$. $$$$$$$$$‘ $$$$$$$$$$$$$$. u$$$$$$‘‘‘‘‘‘‘‘‘‘‘‘‘‘$$$$$$$ $$$$$$$$$ $$$$$$$$$$$$$$$$. ‘$$$$$$... ..$$$$$$$$$ $$$$$$$$" $$$$$$$$$$$$$$$$$u "$$$$$$$‘ u$$$$$$$$$$$$$ $$$$$$$$ u$$$$$$$$$$$$$$$$$$$. "$$$$‘ u$$$$$$$$$$$$$$$u $$$$$$$$ $$$$$$$$$$$$$$$$$$$$$. ‘"‘ .u$$$$$$$$$$$$$$$$$$ $$$$$$$‘ $$$$$$$$$$$$$$$$$$$$$u .u$$$$$$$$$$$$$$$$$$$ $$$$$$$ $$$$$$$$$$$$$$$$$$$$$$$ u$$$$$$$$$$$$$$$$$$$$$ $$$$$$" ‘$$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$$‘ $$$$$$ "$$$$$$$$$$$$$$$$$$$$$ $$$$$$$$$$$$$$$$$$$$" "$$$$$ ‘$$$$$$$$$$$$$$$""""" """""$$$$$$$$$$$$$$‘ "$$$$$$$$$$$$$................$$$$$$$$$$$$" . ‘"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$"‘ $$$$$$uu ‘"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$"‘ $$$$$$$" ‘""$$$$$$$$$$$$$$$$$$$$$$$$$""‘ $$$$$$$ ‘‘"""$$$$$$$$$$$$$"""‘‘ """""$$ ‘‘‘‘‘ chunli@linux:~$
本文出自 “魂斗罗” 博客,请务必保留此出处http://990487026.blog.51cto.com/10133282/1861637
原文地址:http://990487026.blog.51cto.com/10133282/1861637