infpp.fractal
Class SabrinasColorizer

java.lang.Object
  extended by infpp.fractal.SabrinasColorizer
All Implemented Interfaces:
Colorizer

public final class SabrinasColorizer
extends java.lang.Object
implements Colorizer

This colorizer was adapted from a program by Ms. Reif.

Author:
both

Constructor Summary
SabrinasColorizer(int maxIterations)
          Constructs a new SabrinasColorizer.
 
Method Summary
 java.awt.Color calculateColor(int numberOfIterations)
          Calculates a Color given the number of required iterations at a point in a fractal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SabrinasColorizer

public SabrinasColorizer(int maxIterations)
Constructs a new SabrinasColorizer.

Parameters:
maxIterations - the maximum number of iterations of the associated fractal generator
Method Detail

calculateColor

public java.awt.Color calculateColor(int numberOfIterations)
Description copied from interface: Colorizer
Calculates a Color given the number of required iterations at a point in a fractal.

Specified by:
calculateColor in interface Colorizer
Parameters:
numberOfIterations - the given number of required iterations
Returns:
the calculated Color
See Also:
Colorizer.calculateColor(int)