public class DefaultColourRamp extends java.lang.Object implements ColourRamp
minHeight
to 0: black to blue
waterLevel
: blue to cyan
waterLevel
to 256: dark green to green to yellow to orange to red to white
maxHeight
: white to purple
Constructor and Description |
---|
DefaultColourRamp(int minHeight,
int waterLevel,
int maxHeight) |
Modifier and Type | Method and Description |
---|---|
int |
getColour(float n)
Get the colour to use for a value
n . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPreview, getPreview
public DefaultColourRamp(int minHeight, int waterLevel, int maxHeight)
public int getColour(float n)
ColourRamp
n
.getColour
in interface ColourRamp
n
- The value for which to get the colour.