KnownColors
Inheritance: java.lang.Object
public class KnownColors
Methods
Method | Description |
---|---|
tryFindColor(String keyword, Rgb24Color[] output) | Tries to find a color by its string name. |
tryFindName(Rgb24Color color, String[] name) | Tries to find a color name by its RGB value. |
tryFindColor(String keyword, Rgb24Color[] output)
public static boolean tryFindColor(String keyword, Rgb24Color[] output)
Tries to find a color by its string name.
Parameters:
Parameter | Type | Description |
---|---|---|
keyword | java.lang.String | A color name. |
output | Rgb24Color[] | The result container for the found color, or CssLevel1.Black on failure. |
Returns: boolean - True if the color was successfully found by name, false otherwise.
tryFindName(Rgb24Color color, String[] name)
public static boolean tryFindName(Rgb24Color color, String[] name)
Tries to find a color name by its RGB value.
Parameters:
Parameter | Type | Description |
---|---|---|
color | Rgb24Color | A color instance. |
name | java.lang.String[] | The result container for the found color name, or null on failure. |
Returns: boolean - True if the name was successfully found for the given color, false otherwise.