-
public class NamedColor.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static NamedColor.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final NamedColorfrom(Integer value)Attempts to convert the provided RGB integer value to a NamedColor, or returns null if there is no NamedColor with the specified RGB valueFor example, if value was 0, this would return NamedColor.BLACK, but if value was 1, it would return null -
-
Method Detail
-
from
final NamedColor from(Integer value)
Attempts to convert the provided RGB integer value to a NamedColor, or returns null if there is no NamedColor with the specified RGB value
For example, if value was 0, this would return NamedColor.BLACK, but if value was 1, it would return null
-
-
-
-