User talk:Straightlineapple

Sorry, it's so long since I've played around with the Mandelbrot set that I really don't recall the details of how I used colour. And it's so long since I've coded in C that I can barely read my own program. But as I recall, the real trick is having some sort of offset that you subtract from the bailout number before you work out what colour it should be. So, for example, if the bit of the set you're looking at is mostly bailing out after somewhere between 800-1200 iterations, then you may want to subtract 800 from all the bailout values before you decide what colour to make them...

Also, to make it look nice, you should probably use more pixels than you need, then reduce the size. e.g. if I was making a 1024x768 image, I might actually use 16 times as many pixels as I need, then take a sort of average of 16 pixels for each actual pixel in the final result. This makes it much, much smoother.

If you have SDL installed I can give you the latest version of my code, but it's a total mess.... Evercat 21:39, 25 December 2005 (UTC)