Converts a String with the color name or the hexadecimal representation of a color with 6 or 8 hex digits to a Color. With 8 hex digits, the first two digits are the alpha. With 6 hex digits, the color is opaque (alpha = hex ff). A hex String may be preceded by '#' such as "#80ff00". When the s
(String hexColor)
| 141 | * When the string does not include a valid color name or hex code, |
| 142 | * returns Color.GRAY. */ |
| 143 | public static Color decode(String hexColor) { |
| 144 | return decode(hexColor, Color.gray); |
| 145 | } |
| 146 | |
| 147 | /** Converts a String with the color name or the hexadecimal representation |
| 148 | * of a color with 6 or 8 hex digits to a Color. |
no test coverage detected