Fractals are Fun
Sunday, 17. February 2008, 14:29:01
One of my assignments for the C# course at the university is fractals.
Nothing fancy, simply "fractals" so here we go:
Mandelbrot set:
(click for uber large)
Same as above, just zoomed in somewhere:

Julia set (C= -0.835-0,2321i):

Here's a good website if you're interested how it works and don't want your head to explode from reading a lot of smart words.
Fractals are fun because you can (in theory) zoom in as much as you want, but what happens when you run out of floating point precision? This:
C# and .NET is great but working with System.Drawing.Color is terrible. There are a lot of predefined values (wtf is "BlanchedAlmond" or "MediumTurquoise" ?!) and a FromArgb(int, int, int, int) method.
What the hell? If a linear interpolation method too much to ask, then how about addition, subtraction, multiplication operators or at least FromArgb(float, float, float, float)?
Nothing fancy, simply "fractals" so here we go:
Mandelbrot set:
(click for uber large)Same as above, just zoomed in somewhere:

Julia set (C= -0.835-0,2321i):

Here's a good website if you're interested how it works and don't want your head to explode from reading a lot of smart words.
Fractals are fun because you can (in theory) zoom in as much as you want, but what happens when you run out of floating point precision? This:
C# and .NET is great but working with System.Drawing.Color is terrible. There are a lot of predefined values (wtf is "BlanchedAlmond" or "MediumTurquoise" ?!) and a FromArgb(int, int, int, int) method.
What the hell? If a linear interpolation method too much to ask, then how about addition, subtraction, multiplication operators or at least FromArgb(float, float, float, float)?