public final class OutputColors
extends java.lang.Object
OutputColor objects.| Modifier and Type | Method | 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.java.lang.IllegalArgumentException - if the color is not of type
OutputColorType.RGB.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.