Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Randelbrot - A nicely commented Mandelbrot/Julia fractal renderer

Author
Message
flibX0r
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 28th Sep 2007 10:21 Edited at: 28th Sep 2007 12:21
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
flibX0r
21
Years of Service
User Offline
Joined: 14th Feb 2003
Location: Western Australia
Posted: 28th Sep 2007 10:36
Random zoomed Julia screenshot to turn MailBack on



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
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 29th Sep 2007 04:42
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 29th Sep 2007 16:19
flibX0r, very cool! It's quite amazing that such a unique and simplistic algorithm can generate beautiful and complex patterns in nature.

Good work!

Paul.

Login to post a reply

Server time is: 2024-11-19 16:46:28
Your offset time is: 2024-11-19 16:46:28