Package de.xima.fc.color
Class HsvTriplet
java.lang.Object
de.xima.fc.color.HsvTriplet
- All Implemented Interfaces:
Serializable
Represents an HSV color triplet.
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getHex()
int
getHsv()
int
double
int
double
int
double
int
hashCode()
static HsvTriplet
of
(double[] components) static HsvTriplet
of
(double hue, double saturation, double value) static HsvTriplet
of
(long hsv) static HsvTriplet
of
(long hue, long saturation, long value) static HsvTriplet
scaled
(double scaleHue, double scaleSaturation, double scaleValue) toString()
-
Method Details
-
equals
-
getHex
-
getHsv
public int getHsv() -
getHueInt
public int getHueInt() -
getHueNorm
public double getHueNorm() -
getSaturationInt
public int getSaturationInt() -
getSaturationNorm
public double getSaturationNorm() -
getValueInt
public int getValueInt() -
getValueNorm
public double getValueNorm() -
hashCode
public int hashCode() -
scaled
- Parameters:
scaleHue
- Scale for the hue value.scaleSaturation
- Scale for the saturation value.scaleValue
- Scale for the lightness value.- Returns:
- Scales all components by the given factors.
-
toRgbTriplet
-
toString
-
of
-
of
-
of
-
of
-
of
-