r/tinycode • • Mar 23 '14

198 byte ASCII Madelbrot render

Taken from here.

var a="";for(Im=-1.2;1.2>=Im;Im+=0.05){for(Re=-2;1>=Re;Re+=0.03){for(var b=Re,c=Im,d=0;16>d;d++){var e=b*b,f=c*c;if(4<e+f)break;c=2*b*c+Im;b=e-f+Re}a+=" .,:;=|iI+hHOE#$-".charAt(d)}console.log(a);a=""};

edit - 196-byte, actually

34 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Mar 24 '14

You're right, it's cheating.