Skip to content

Instantly share code, notes, and snippets.

@jonelf
Created June 21, 2018 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonelf/4db13fd3ae1dff2895dcd7db51e13a54 to your computer and use it in GitHub Desktop.
Save jonelf/4db13fd3ae1dff2895dcd7db51e13a54 to your computer and use it in GitHub Desktop.
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