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 2008 @ 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 2008 @ 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 2008 @ 7:02 pm
This is pretty sweet. I am not really familiar with the inner workings of these things so I was on a quest tonight to learn more. Is there a way to get the color transitions to be smoother, or will that just happen with larger image sizes?
Comment by Aaron — Dec 13 2008 @ 5:27 am