From: Geoff Hulette <ghulette@cs.ucsd.edu>
Date: May 25, 2007 6:19:24 PM CDT
To: submission@rubyquiz.com
Subject: Please Forward: Ruby Quiz SubmissionHi, I am new to this group so I hope I am doing this right. I wrote a short ruby program that can render a Mandelbrot set to a "MandelImage" object, which can then be printed as an ascii image to the console. You could imagine writing an RMagick routine to render it to a GIF or something instead. This solution is more the spirit than the letter for this week's quiz, since I don't process any command line args (but you could reuse the classes), and Mandelbrot sets, while fractal, don't really have integer "levels". If you run "ruby mandelbrot.rb", it should print first the classic Mandelbrot set, and then similar-looking (but rotated) cardioid, from deeper in the set.
-geoff
mandelbrot.rb (1.66 KB)
ยทยทยท
Begin forwarded message: