Link to home
Start Free TrialLog in
Avatar of InteractiveMind
InteractiveMindFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Decent colour sequences for Mandelbrot set.

Hi,

I've created a program which creates a fractal based on mandelbrot set .... Currently, for those interested, you can find it here: http://s147645075.websitehome.co.uk/   

The colours within the fractal are dependent on an image which I've created. The image is of 256 pixels in height, and just 1 pixel wide. From top to bottom, this image is loaded into a Color array, which is then used alongside the algorithm to produce the image ...

Now, this image (colour sequence) I'm creating is basically a load of linear-gradients of multiple colours - which I'm producing using PhotoShop.

However, while I can produce some reasonably snazzy sequences (i.e., ones which result in a snazzy fractal), I'm just guessing what should be where, etc, and quite often, the result is crap.

So, basically, I'm wondering if there's some algorithm to produce a decent colour sequence? Like the multi-coloured fractals that I see so many of in Google Images: has a known algorithm been used to produce those colours?

It all works too well to be random ...   :)

(I'm aware that the number of iterations also plays it's part in the final effect)

Thanks.
SOLUTION
Avatar of PaulCaswell
PaulCaswell
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of InteractiveMind

ASKER

Hey Paul,

I'll upload the source for it, if you'd like ... heck, if you can figure how to shove it into a screen-saver, then let me know (perhaps wrap it in a JFrame - set to fullscreen exclusive mode, then multi-thread to randomly select and zoom random regions?) ... (Btw, you can undo zooms using the 'u' key).

Cheers for the article, I'll give it a read.

Rob.
SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It requires at least Java 1.3 to run (as it uses the Swing API)..

>> and as you get close you can easily have tendrils narrower than a pixel, which can result in disjoint patches
That sounds pretty much spot on with what's happenning with my program at times ...  :)

>> I would therefore suggest that instead of a linear colour gradient, you might let the colours get closer as the
>> level sets get narrower
I shall keep this in mind, thanks.

:)
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial