Package com.aoindustries.awt
Class RGBColor
- java.lang.Object
-
- com.aoindustries.awt.RGBColor
-
public final class RGBColor extends Object
Gets color integers provided color names. Supports the standard Unix colors as found in rgb.txt, hex colors starting with 0x, hex colors starting with #, or hex colors on their own.- Author:
- AO Industries, Inc.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetColor(String name)Gets color integers provided color names.
-
-
-
Method Detail
-
getColor
public static int getColor(String name) throws IOException, IllegalArgumentException
Gets color integers provided color names. Supports the standard Unix colors as found in rgb.txt, hex colors starting with 0x, hex colors starting with #, or hex colors on their own.- Parameters:
name- the name of the color or a hex value- Returns:
- an
intin 8 bit RGB format - Throws:
NullPointerException- ifnameisnullIllegalArgumentException- if unable to determine the colorIOException
-
-