infpp.fractal
Class YellowBlueColorizer

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

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

The YellowBlueColorizer class provides a Colorizer that generates colors from yellow to blue.

Author:
both

Constructor Summary
YellowBlueColorizer(int maxIterations)
          Constructs a new YellowBlueColorizer.
 
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

YellowBlueColorizer

public YellowBlueColorizer(int maxIterations)
Constructs a new YellowBlueColorizer.

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)