X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fbb9d,ce31cf396284cd16,start X-Google-Attributes: gidfbb9d,public From: bgriffin@ic.sunysb.edu (Eli the bearded) Subject: code-talk: sphere intersecting a plane Date: 1996/02/07 Message-ID: <4f9v79$dhm@miso.wwa.com>#1/1 X-Deja-AN: 138356881 sender: boba@sashimi.wwa.com organization: the-rapist is a poor choice of a name for the profession newsgroups: rec.arts.ascii My NEW obfuscated c code signature. This is not ascii-art per say, but it does generate an ascii-art movie. It's output is a sphere intersecting a plane. The image is a little rough in places, and I am considering a different shading, but overall I am quite happy. This program assumes a vt100. It could be adapted to other terminals fairly easily, if you know what to modify. This was inspired by a guy with a piece of signature code to generate a full screen ascii mandelbrot. Elijah ------ /* cc -Dp=putchar signature.c -lm */ main(){int i,j,k,l;char m[]=" .,:;i!1I]fJYVOQZXHKNSWM";for(i=-12;i<13;i++){for (k=0,l=7379124;k<6;k++)p((l&0xf)+(k?97:65)),l>>=4;for(j=-12;j<12;j++){for(k=(j +12?-12:-6);k<12;k++)((l=i*i+j*j+k*k)<144)?p(m[l=sqrt(l+2)*2]):p((l<25)?39:32) ;(j!=11)?p('\n'):0;}p(27),p(91),p(72);}puts("Elijah:bgriffin@ic.sunysb.edu");}