Jump to content

Mandelbrot set: Difference between revisions

Line 1,850:
 
def mandelbrot(a)
Array.new(50,a).inject(a) { |z,c| z*z + ca }
end
 
Line 1,897:
 
Pixmap.mandelbrot(300,300).save('mandel.ppm')</lang>
 
=={{header|Scheme}}==
This implementation writes an image of the Mandelbrot set to a plain pgm file. The set itself is drawn in white, while the exterior is drawn in black.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.