Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 9 Nov 1993.
Re: REQ: Mandelbrot ASCII?

Re: REQ: Mandelbrot ASCII?

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

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,5817767747ca711e
X-Google-Attributes: gidf996b,public
X-Google-ArrivalTime: 1993-11-10 15:56:44 PST
Newsgroups: alt.ascii-art
Path: gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!convex!cnn.exu.ericsson.se!ericom!sics.se!ifi.uio.no!nac.no!dhhalden.no!pc147.dhhalden.no!espenm
From: esp...@dhhalden.no (ESPEN MONNICH)
Subject: Re: REQ: Mandelbrot ASCII?
Message-ID: <esp...@dhhalden.no>
Lines: 33
Sender: new...@dhhalden.no (Network News User)
Nntp-Posting-Host: pc147
Organization: Ostfold College
References: <2b3u15$4r...@cutter.clas.ufl.edu> <ddeden.752295986@cwis> <199...@cs.wisc.edu>
Date: Tue, 9 Nov 1993 20:41:24 GMT

Related ASCII art in the Gallery

Explore these categories from our collection of 11,000+ artworks:

About this message. This message was posted publicly to the newsgroup alt.ascii-art in 1993 and is 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 the author? 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.

Help classify this post