title: Which color gradient is used to color mandelbrot in wikipedia?
body: <p>At Wikipedia's <a href="https://en.wikipedia.org/wiki/Mandelbrot_set#Continuous_.28smooth.29_coloring" rel="noreferrer">Mandelbrot set</a> page there are really beautiful generated images of the Mandelbrot set.</p>
  
  <p><img src="https://i.stack.imgur.com/53kj4.png" alt="Detail Mandelbrot"></p>
  
  <p>I also just implemented my own Mandelbrot algorithm. Given <code>n</code> is the number of iterations used to calculate each pixel, I color them pretty simple from black to green to white like that (with C++ and Qt 5.0):</p>
  
  <pre><code>QColor mapping(Qt::white);
  if (n &lt;= MAX_ITERATIONS){
      double quotient = (double) n / (double) MAX_ITERATIONS;
      double color = _clamp(0.f, 1.f, quotient);
      if (quotient &gt; 0.5) {
          // Close to the mandelbrot set the color changes from green to white
          mapping.setRgbF(color, 1.f, color);
      }
      else {
          // Far away it changes from black to green
          mapping.setRgbF(0.f, color, 0.f);
      }
  }
  return mapping;
  </code></pre>
  
  <p>My result looks like that:</p>
  
  <p><img src="https://i.stack.imgur.com/2D9AL.png" alt="enter image description here"></p>
  
  <p>I like it pretty much already, but which color gradient is used for the images in Wikipedia? How to calculate that gradient with a given <code>n</code> of iterations?</p>
  
  <p>(This question is <em>not</em> about <a href="https://stackoverflow.com/q/369438/1260906">smoothing</a>.)</p>