post Fractals in C#

Filed under Code, Downloads by Iain (11:30 am, August 10th, 2007)

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

Fractal renderers in C#

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
Exploring Lyapunov Space

 

Zooming into the Mandelbrot se

 

Mandelbrot set 2

 

Mandelbrot set 3
Zooming into the Mandelbrot set

 

Bifurcation diagram of the quadratic map
Bifurcation diagram of the quadratic map

Download (76Kb Zip, binaries and full source code included)

3 Comments »

  1. Very good! Thanks!

    Comment by li — Mar 18 2K08 @ 1:45 pm

  2. 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

  3. 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

Leave a comment

ruld rurd
© 2001-2008 Iain Craig RSS Feeds Entries | Comments