java.lang.Object
com.marginallyclever.convenience.ColorRGB
RGB color class. Values should be 0...255.
-
Field Details
-
red
public int red -
green
public int green -
blue
public int blue
-
-
Constructor Details
-
ColorRGB
public ColorRGB() -
ColorRGB
public ColorRGB(int r, int g, int b) -
ColorRGB
-
ColorRGB
public ColorRGB(int pixel) -
ColorRGB
-
-
Method Details
-
set
public void set(int hex) -
toInt
public int toInt() -
set
-
set
-
sub
-
add
-
mul
-
diff
-
toString
-
getRed
public int getRed() -
getGreen
public int getGreen() -
getBlue
public int getBlue() -
parse
-
toColor
-