DCSIMG
Mandelbrot Set with C# 5.0 Async support - Pavel's Blog
Sign in | Join | Help

Pavel's Blog

Pavel is a software guy that is interested in almost everything
software related... way too much for too little time

Mandelbrot Set with C# 5.0 Async support

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!

Comments List

# Using the Async CTP With Windows Phone

Published at Saturday, January 07, 2012 12:05 PM by Pavel's Blog  

The Async CTP that exposes C# 5.0 features to be used with asynchronous programming is not just for the

# re: Mandelbrot Set with C# 5.0 Async support

Published at Tuesday, April 09, 2013 4:35 PM by Itamar  

Can you upload the code ?

# re: Mandelbrot Set with C# 5.0 Async support

Published at Tuesday, April 09, 2013 4:36 PM by Itamar  

Can you upload the code?

Leave a Comment

(required) 
(
required
)
 
(optional)
(required) 

Enter the numbers above: