Module Fractals::Algorithms
In: lib/fractals/algorithms.rb

A renderer’s algorithm calculates the color index for complex coordinates that lie outside of a fractal’s set.

EscapeTime:The default algorithm for orbits fractals.
NormalizedIterationCount:Produces an image with less color banding than the Escape Time algorithm.


Example:

mandelbrot = Mandelbrot.new
mandelbrot.algorithm = Algorithms::NormalizedIterationCount

[Validate]