- Direct Known Subclasses:
ContinuousModuleValue
, SawToothModuleValue
, SawToothPhaseModuleValue
public abstract class DomainColoring
extends Object
Base class for domain coloring.
All methods have the following features:
- hue represents phase (red for 0, then orange, yellow, green,
blue at π, indigo, violet and back to red)
- saturation is constant
Their differences lie on what value represents.
-
Constructor Summary 
Constructors
-
Method Summary 
double
double
Get saturation for a complex value.
protected abstract double
Get value for a complex value.
Methods inherited from class java.lang.Object 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details 
-
DomainColoring 
protected DomainColoring(double saturation)
Simple constructor.
- Parameters:
saturation
- constant saturation
-
Method Details 
-
hue 
Continuous hue.
- Parameters:
z
- complex value
- Returns:
- continuous hue
-
saturation 
public double saturation(Complex z)
Get saturation for a complex value.
- Parameters:
z
- complex value
- Returns:
- saturation
-
value 
protected abstract double value(Complex z)
Get value for a complex value.
- Parameters:
z
- complex value
- Returns:
- value