public class ColorSpectrum extends Object
| Constructor and Description |
|---|
ColorSpectrum() |
| Modifier and Type | Method and Description |
|---|---|
static Color |
getGrayScaleSpectrum(float value)
Gets a gray scale color representing the given number, 0 means white, 1 means black.
|
static Color |
getSpectrum(float val,
Color... colors)
Gets a color representing the given number in an given color scale.
|
public static Color getGrayScaleSpectrum(float value)
value - between 0 and 1public static Color getSpectrum(float val, Color... colors)
val - between 0 and 1colors - color spectrumCopyright © 2007–2021. All rights reserved.