Fractals in C#
Three fractal generators in C#, plus an application template for making your own zoomable renderers.

I wrote these a few months back. Included in the download are zoomable renderers for Bifurcation diagrams (codebase-bifurcator), the Mandelbrot set (codebase-juliet), and Lyapunov fractals (codebase-lupine). The formulae for these were gleaned mostly from Wikipedia, and I used the same colour sets used there for visual comparison.
codebase-zoomrenderer is a blank renderer for implementing your own fractals. The interface allows image saving (BMP/JPG), parameter tweaking, and mouse selection zooming.
Scroll down for download.

Exploring Lyapunov Space



Zooming into the Mandelbrot set

Bifurcation diagram of the quadratic map
Download (76Kb Zip, binaries and full source code included)







Very good! Thanks!
Comment by li — Mar 18 2K08 @ 1:45 pm
Ooh - this post’s #3 in Google for “C# Fractals” and seems to be getting a lot of views.
Let me know if you need any further details on this implementation.
Comment by Iain — Mar 22 2K08 @ 1:29 am
You can speed up the mandlebrot drawing speed by replacing:-
while (iter < iterations && Math.Sqrt((x1 * x1) + (y1 * y1)) < 2)
with:-
while (iter < iterations && x1*x1+y1*y1 < 4)
Comment by Mark hemingway — Jul 29 2K08 @ 7:02 pm