Randelbrot - A Mandelbrot/Julia fractal renderer
Why?
I got a little bored the other day, felt like playing with fractals again, so I wrote this little fractal renderer.
What's it do?
Renders a Mandelbrot fractal, can zoom in and out, and when looking at the Mandelbrot fractal after it's rendered, and you middle click on a point, it will render a Julia fractal using that point as the constant (middle click after it's rendered again to go back to the Mandelbrot fractal)
How's it do it?
Standard Mandelbrot/Julia function of Z -> Z*Z + C. Colours ar determined through a simple inline function that uses modulus calculations to make the nice colour bands
It uses double precision floating-point numbers, but their accuracy seems to run out at about 262144x zoom
What's it look like
Initial Mandelbrot:
Somewhat zoomed in Mandelbrot
A Julia fractal
Another Julia fractal, based on a different constant
GIMME!
I've just noticed a bug in that it doesn't reset the render iterations when changing between Mandelbrot and Julia fractals.
I've updated it, but I'm on the wrong computer to test it. Logically, it should work perfectly, I just had to reset the loop variable to LOOP_COUNT
Source code is available
here
Can I use this?
Feel free to use any part of this for you own evil purposes. Just send us an email with details, I'd love to hear about people using ma codez
Big whorls have little whorls which feed on their velocity,
Little whorls have lesser whorls and so on to viscosity. - Lewis F. Richardson
Also, my website has no content. But it looks perty