Package de.xima.fc.color
Class RgbTriplet
java.lang.Object
de.xima.fc.color.RgbTriplet
- All Implemented Interfaces:
Serializable
Represents an RGB color triplet.
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
double
int
double
getHex()
int
double
int
getRgb()
int
hashCode()
static RgbTriplet
of
(double[] components) static RgbTriplet
of
(double red, double green, double blue) static RgbTriplet
of
(long rgb) static RgbTriplet
of
(long red, long green, long blue) static RgbTriplet
static RgbTriplet
of
(String hexString, RgbTriplet defaultValue) scaled
(double scaleRed, double scaleGreen, double scaleBlue) toString()
-
Method Details
-
equals
-
getBlueInt
public int getBlueInt() -
getBlueNorm
public double getBlueNorm() -
getGreenInt
public int getGreenInt() -
getGreenNorm
public double getGreenNorm() -
getHex
-
getRedInt
public int getRedInt() -
getRedNorm
public double getRedNorm() -
getRgb
public int getRgb() -
hashCode
public int hashCode() -
scaled
- Parameters:
scaleRed
- Scale for the red value.scaleGreen
- Scale for the green value.scaleBlue
- Scale for the blue value.- Returns:
- Scales all components by the given factors.
-
toCssColor
-
toHslUvTriplet
-
toHsvTriplet
-
toString
-
of
-
of
-
of
-
of
-
of
-
of
-