Created
June 21, 2018 12:17
-
-
Save jonelf/4db13fd3ae1dff2895dcd7db51e13a54 to your computer and use it in GitHub Desktop.
Mandelbrot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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