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 TypeMethodDescriptionbooleanintdoubleintdoublegetHex()intdoubleintgetRgb()inthashCode()static RgbTripletof(double[] components) static RgbTripletof(double red, double green, double blue) static RgbTripletof(long rgb) static RgbTripletof(long red, long green, long blue) static RgbTripletstatic RgbTripletof(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
-