KnownColors
Leave feedback
On this page
Inheritance: java.lang.Object
public class KnownColors
| 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. |
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.
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.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.