Skip to content

Instantly share code, notes, and snippets.

@jocke-l
Created January 25, 2015 22:50
Show Gist options
  • Save jocke-l/4b3fdef28d8eeda7acdb to your computer and use it in GitHub Desktop.
Save jocke-l/4b3fdef28d8eeda7acdb to your computer and use it in GitHub Desktop.
mandelbrot colour
/*return iterations == DEPTH ? -1 :
iterations + 1 - log(log(sqrt(x*x + y*y))) / log(2);*/
/*
* Coolt mönster:*/
return (iterations == depth ? -1 :
(iterations << 4)) - log(sqrt(x*x - y*y)) / log(2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment