In alt.ascii-art, Colin Randall <
colin.r...@gmail.com> wrote:
> Date: Thu, 15 Mar 2001 22:42:04 +0000
> Eli the Bearded writes
Yup, I've been around a while.
> In alt.ascii-art.animation, desoftware <
desof...@ntlworld.com> wrote:
> > As part of my CS syllabus,I have to be able to use news groups as I am new
> > to this I choose this one, because it looks interesting, I have heard of
> > ascii art, but could you define what ascii animation is?
>
> Compile and run this program. It was written with a vt100 in mind,
> but other terminal types should work. Maybe even a dos window.
>
> Elijah
> ------ /* cc signature.c -lm */
> main(){int i,j,k,l;for(i=-12;i<13;i++,printf("\033[H")){for(l=61968*457+
> 1,l*=5;l>8;l>>=4)p(97-(l>>22)+(l&15));for(j=-12;j<12;){for(k=j+12?-12:-6
> ;12>k;)p((l=k*k+++i*i+j*j)<12*12?(l=sqrt(l))[".,:;iIJYVSOM"]:32);j++<11?
> p(10):0;}}puts("Elijah:
eli...@workspot.net");}p(int m){printf("%c",m);}
That's a middle version. Over the years I reworked it several times for
several email addresses. There's a bit of trickery to getting the
blocktext code to work while changing the length of the email address.
Here's the latest version with an up-to-date email address, I include it
in the vt100-slowcat repo.
main(h,i,j,k,l){for(i=-12;i<13;i++,printf("\e[H")){for(l=858163*'!'-2,l*=5;
l>8;l>>=4)p(97-(l>>22)+(l&15));for(j=-12;j<12;){for(k=-15+3*(j==-12);15>k;)
p(h=(l=k*k+++i*i+j*j)<13*13?(l=sqrt(l))["..,:;iIJYVSOM"]:32),p(h);12>++j?p(
10):10;}}puts("\e[JElijah\n------\n*@qaz.wtf");p(10);}p(m){printf("%c",m);}
Here's the Makefile entry for it:
signature: signature.c
@echo Lots of warnings are expected for this program
gcc -std=c89 -o signature signature.c -lm
Elijah
------
hasn't tried to compile it with clang