@param hex e.g. "#FFFFFFFF" @deprecated use #rgba(String)
(final String hex)
| 121 | * @deprecated use {@link #rgba(String)} |
| 122 | */ |
| 123 | @Deprecated |
| 124 | public static int rgbaToColor(final String hex) { |
| 125 | return intToColor( |
| 126 | Integer.parseInt(hex.substring(1, 3), 16), |
| 127 | Integer.parseInt(hex.substring(3, 5), 16), |
| 128 | Integer.parseInt(hex.substring(5, 7), 16), |
| 129 | Integer.parseInt(hex.substring(7, 9), 16) |
| 130 | ); |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * @deprecated use {@link #hsl(int, int, int)} |