I recently picked up a copy of the excellent book 'The Beauty of Fractals' for just 20p from a library sale, inspired I've had another go at rendering a fractal function. This time the classic mandlebrot set.
Here's a small portion near the upper complex limit, this rendered slowly in Matlab while I went for lunch:
I grabbed the basic psuedo code from Wikipedia, though I noticed some bugs in this during implementation. I've updated the Wikipedia code to get rid of these. The wiki code doesn't shade inside the set (the green parts), but this is just related to the magnitude of the real + complex co-ordinates squared.
If people want the Matlab code then leave a comment and I'll post it.
Wednesday, 3 August 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment