Original Usenet thread from alt.ascii-art, started 9 Nov 1993.
REQ: Mandelbrot ASCII?
alt.ascii-art
· 2 messages · 9 Nov 1993 - 9 Nov 1993
Mandelbrot ---------- ........................................................-.................... .......................................................--..................... ....................................................-=-# #-................... ....................................................- =................... ...........................................--=..-----= =----.....-......... ............................................- ++ ! -====......... ..........................................=- -.......... ..........................-.............. ......... ..........................--..-......- -....... ...........................-= #= ---= -........ ..........................-! - ........ .......................=--- -......... .......--==#= ==+++&! +-........... .......................=--- -......... ..........................-! - ........ ...........................-= != ---= -........ ..........................--..-......- -....... ..........................-.............. ......... ..........................................=- -.......... ............................................- ++ ! -====......... ...........................................--=..-----= =-- --.....-......... ....................................................- =................... ....................................................-=-# #-................... .......................................................--..................... ........................................................-....................
In article <199...@cs.wisc.edu> jov...@picard.cs.wisc.edu (Jon Yankovich) writes: >From: jov...@picard.cs.wisc.edu (Jon Yankovich) >Subject: Re: REQ: Mandelbrot ASCII? >Date: 9 Nov 93 00:54:45 GMT Here are 2 C-programs that generate the Mandelbrot set in ASCII! The basicly do the same thing, but with different outputs! If you are a coder, you can change the code to generate other pictures..... Enjoy! Program #1 ------cut here----------- main() { int x,y,k; char *b=" .:,;!/>)|&IH%*#@";double cr,ci,zr,zi,temp,cx,cy; for (y=30;puts(""),cy=y*0.1-1.5,y-->=0;){for(x=0;cx=x*0.04-2,zr=0,zi=0,x++<75;){ for(cr=cx,ci=cy,k=0;temp=zr*zr-zi*zi+cr,zi=2*zr*zi+ci,zr=temp,k<112;k++) if(zr*zr+zi*zi>10)break;printf("%c",b[k%16]);}}} ------cut here----------- Program #2 ------cut here----------- float o=0.075,h=1.5,T,r,O,l,I;int _,L=80,s=3200;main(){for(;s%L|| (h-=o,T= -2),s;4 -(r=O*O)<(l=I*I)|++ _==L&&write(1,(--s%L?_<L?--_ %6:6:7)+".:,;!/>)|&IH%*#@",1)&&(O=I=l=_=r=0,T+=o /2))O=I*2*O+h,I=l+T-r;} ------cut here----------- Espen Moennich esp...@dhhalden.no
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this thread.
These messages were posted publicly to the newsgroup
alt.ascii-art
in 1993 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.