Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Mandelbrot
ruby -e "32.times{|l|puts (0..78).map{|n|x=y=i=0;(x,y,i=x*x-y*y+n/38.0-1.5,2*x*y+l/14.0-1,i+1)until(x*x+y*y>4||i>78);(32+i).chr}*''}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment