ArgbColor.KnownColors
Contents
[
Hide
]
Inheritance: java.lang.Object
public static class ArgbColor.KnownColors
Contains all “known colors”, that have fixed unique name and value in CSS standart
See also: https://developer.mozilla.org/en-US/docs/Web/CSS/named-color
Constructors
Constructor | Description |
---|---|
KnownColors() |
Fields
Field | Description |
---|---|
Empty | Returns an empty color, which has no channels info and is fully transparent. |
Transparent | Fully transparent empty color. |
Methods
Method | Description |
---|---|
tryFind(String keyword, ArgbColor[] output) | Tries to find a color by its string name |
KnownColors()
public KnownColors()
Empty
public static final ArgbColor Empty
Returns an empty color, which has no channels info and is fully transparent. Same as ‘#Transparent.Transparent’. Default value.
Transparent
public static final ArgbColor Transparent
Fully transparent empty color. The same as default ‘#Empty.Empty’ color value.
tryFind(String keyword, ArgbColor[] output)
public static boolean tryFind(String keyword, ArgbColor[] output)
Tries to find a color by its string name
Parameters:
Parameter | Type | Description |
---|---|---|
keyword | java.lang.String | A color name |
output | ArgbColor[] | The resultant color value on success or #Transparent.Transparent value on failure |
Returns: boolean - True if color was successfully found by its name, or false otherwise