public final class OutputColors extends Object
OutputColor
objects.Modifier and Type | Method and Description |
---|---|
static int |
getRGB(OutputColor color)
Get RGB value for an
OutputColor specified for a constant RGB
color (type OutputColorType.RGB ). |
static OutputColorType |
getType(OutputColor color)
Get type of a color.
|
@NonNull public static OutputColorType getType(@NonNull OutputColor color)
color
- The color to get type of.public static int getRGB(OutputColor color)
OutputColor
specified for a constant RGB
color (type OutputColorType.RGB
).color
- The color to get RGB value for.IllegalArgumentException
- if the color is not of type
OutputColorType.RGB
.