public abstract class OutputColor extends Object
Although using wide range of custom RGB colors may be tempting, predefined colors are recommended, as they can be configured to respect GUI theme in use.
Modifier and Type | Method and Description |
---|---|
static OutputColor |
debug()
Debug text color.
|
static OutputColor |
failure()
Failure text color.
|
static OutputColor |
rgb(int rgbValue)
Arbitrary constant RGB color.
|
static OutputColor |
rgb(int r,
int g,
int b)
Arbitrary constant RGB color.
|
static OutputColor |
success()
Success text color.
|
static OutputColor |
warning()
Warning text color.
|
@NonNull public static OutputColor warning()
@NonNull public static OutputColor failure()
@NonNull public static OutputColor debug()
@NonNull public static OutputColor success()
@NonNull public static OutputColor rgb(int r, int g, int b)
Please note that it is recommended to use colors for predefined text types, which can respect color theme used by the GUI.
r
- The red component, in the range (0 - 255).g
- The green component, in the range (0 - 255).b
- The blue component, in the range (0 - 255).IllegalArgumentException
- If some of color components is out of
range.@NonNull public static OutputColor rgb(int rgbValue)
Please note that it is recommended to use colors for predefined text types, which can respect color theme used by the GUI.
rgbValue
- The combined RGB components.