Skip to content

Instantly share code, notes, and snippets.

@ogredude
Created August 4, 2011 20:46
Show Gist options
  • Save ogredude/1126225 to your computer and use it in GitHub Desktop.
Save ogredude/1126225 to your computer and use it in GitHub Desktop.
Mandelbrot generator in 111 characters!
80.times{|a|p (0..300).map{|b|x=y=i=0;(x,y,i=x*x-y*y+b/150.0-1.5,2*x*y+a/40.0-1,i+1)until(x*x+y*y>4||i>98);i>98?0:1}*''}
@pmarreck
Copy link

pmarreck commented Aug 4, 2011


Which is ridiculous. Also note the cheating "30until" :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment