# How can I color my Mandelbrot set like this?

I have a background image of a fractal on my phone that I would like in a higher resolution with super sampling, and decided to write my own program for it. I've got down rendering a Mandelbrot set, even using HSV/HSL as coloring methods, but I can't get my fractals to look as nice as these. Here's a prime example, and here is the image I use on my phone.

As far as I can tell they're rendered using Ultra Fractal 3. How would I go about coloring my Mandelbrot set in the same way?

Using HSV/HSL I have only managed to produce similar results to this JavaScript renderer.

Mandelbrot fractal images are often made by selecting the color based on the iteration where the iteration "blew up" or the point escaped (modulo some factor, perhaps, that keeps the number in the color map (and I don't know how deep people let these iterate nowadays)) for some arbitrary definition of "escape". For $$z_{n+1}=z_n^2+c,$$ and $$c=(x,y)$$ of the point you're testing for inclusion. At the very least you need the coordinates of the four corners of the domain (or anything equivalent) and any parameters that might map $$n_{\rm blowup}$$ back into the color map and the color map (which you can probably pick off an image with your favorite image manipulation program (like Photoshop) and the eyedropper tool). You need your own (their) definition of "blow up" since you can't iterate forever. It might just count as leaving the domain or 10x the domain or $$n$$ too big or $$\ldots$$, but it's been since high- school since I coded one of these (in QuickBasic(!) as a language learning project).
• Regarding the definition of "blow up", if the value of $|z_n|$ ever exceeds $2$ then the sequence $(z_n)$ will approach infinity – ogogmad Dec 6 '20 at 23:04