java.lang.Object
com.aoapps.hodgepodge.awt.RGBColor
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
-
Method Details
-
getColor
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
int
in 8 bit RGB format - Throws:
NullPointerException
- ifname
isnull
IllegalArgumentException
- if unable to determine the colorIOException
-