public class RandomColors extends IndexedColorMapper
ColorMapper.Mode
Constructor and Description |
---|
RandomColors()
Creates a new RandomColors object with default seed.
|
RandomColors(long seed)
Creates a new instances with the specified seed.
|
Modifier and Type | Method and Description |
---|---|
Paint |
get(int index)
Returns the Paint associated to the specified index value.
|
float[] |
getColorVariance()
Returns the current color variance.
|
void |
setColorVariance(float[] colorVariance)
Sets the current color variance.
|
applyMode, get
getMode, setMode
public RandomColors()
public RandomColors(long seed)
seed
- Random number seed.public Paint get(int index)
get
in class IndexedColorMapper
index
- Numeric index.public float[] getColorVariance()
public void setColorVariance(float[] colorVariance)
colorVariance
- Range of hue, saturation and brightness a color
can have.Copyright © 2009-2013. All Rights Reserved.