org.opengts.util
Class ColorTools.RGB
java.lang.Object
org.opengts.util.ColorTools.RGB
- Enclosing class:
- ColorTools
public static class ColorTools.RGB
- extends java.lang.Object
RGB class.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ColorTools.RGB
public ColorTools.RGB(int R,
int G,
int B)
ColorTools.RGB
public ColorTools.RGB(int[] RGB)
ColorTools.RGB
public ColorTools.RGB(int RGB)
ColorTools.RGB
public ColorTools.RGB(float R,
float G,
float B)
ColorTools.RGB
public ColorTools.RGB(float[] RGB)
ColorTools.RGB
public ColorTools.RGB(double R,
double G,
double B)
ColorTools.RGB
public ColorTools.RGB(double[] RGB)
getRGB
public int getRGB()
getRGBColorComponents
public float[] getRGBColorComponents()
lighter
public ColorTools.RGB lighter(double percent)
darker
public ColorTools.RGB darker(double percent)
mixWith
public ColorTools.RGB mixWith(ColorTools.RGB color)
mixWith
public ColorTools.RGB mixWith(ColorTools.RGB color,
float weight)
mixWith
public ColorTools.RGB mixWith(ColorTools.RGB color,
double weight)
toColor
public java.awt.Color toColor()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toString
public java.lang.String toString(boolean inclHash)