Mandelbrot Set with C# 5.0 Async support

November 21, 2011

I’ve always been fascinated by the Mandelbrot set. It’s an intriguing set, and the fractals created are truly mind boggling. (for more information on the Mandelbrot, and other such sets, you can start with the above Wikipedia link).

As part of my preparation for tomorrow’s session on C# 5.0 asynchronous programming, I’ve decided to create a WPF application to view and explore the Mandelbrot set, while taking advantage of those new asynchronous features. This turned out to be rather fun. Here’s the initial output:

image

Now you can mark a rectangular are to zoom in:

image

and the result:

image

And a few more zoomed in images:

imageimageimage

This is simply fun!

Note that to compile the code you would need Visual Studio 2010 with SP1 and the latest Async CTP (3) installed.

As an aside, the calculations use the relatively new Complex type introduced in .NET 4.

Happy zooming, and (maybe) see you tomorrow!

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

2 comments

  1. ItamarApril 9, 2013 ב 16:35

    Can you upload the code ?

    Reply
  2. ItamarApril 9, 2013 ב 16:36

    Can you upload the code?

    Reply