scenic
Interface ColorFunction

All Known Implementing Classes:
LinearColorFunction

public interface ColorFunction

This interface is used to define a color function. A color function is used for drawing gradients.


Method Summary
 double max()
          Returns the maximum position of the function.
 double min()
          Returns the minimum position of the function.
 ScenicColor value(double x)
          Returns the color value at the given position.
 

Method Detail

value

ScenicColor value(double x)
Returns the color value at the given position.

Parameters:
x - the argument.
Returns:
the color.

min

double min()
Returns the minimum position of the function.


max

double max()
Returns the maximum position of the function.