Hello! I'm writing a fractal generation application. I have the fractal part down, but I can't seem to get the coloring right.
What I want to do is, as the number gets closer to infinity, the pixel it relates to's color should get darker (Black relating to infinity, The other color relating to 0).
Currently, I'm doing the following to compute the colors: