Package de.linusdev.lutils.color
Interface Color
- All Known Implementing Classes:
HSVAColorImpl,RGBAColorDoubleImpl,RGBAColorIntImpl
public interface Color
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HSVAColorofHSV(double h, double s, double v) static @NotNull HSVAColorofHSVA(double h, double s, double v, double a) static @NotNull RGBAColorofRGB(@org.jetbrains.annotations.Range(from=0L, to=255L) int r, @org.jetbrains.annotations.Range(from=0L, to=255L) int g, @org.jetbrains.annotations.Range(from=0L, to=255L) int b) static @NotNull RGBAColorofRGB(double r, double g, double b) static @NotNull RGBAColorofRGB(int hex) static @NotNull RGBAColorofRGBA(@org.jetbrains.annotations.Range(from=0L, to=255L) int r, @org.jetbrains.annotations.Range(from=0L, to=255L) int g, @org.jetbrains.annotations.Range(from=0L, to=255L) int b, @org.jetbrains.annotations.Range(from=0L, to=255L) int a) static @NotNull RGBAColorofRGBA(double r, double g, double b, double a) static @NotNull RGBAColorofRGBA(int hex) @NotNull HSVAColor@NotNull RGBAColor
-
Field Details
-
BLACK
-
RED
-
GREEN
-
BLUE
-
WHITE
-
CYAN
-
ORANGE
-
-
Method Details
-
ofRGB
@Contract(value="_, _, _ -> new", pure=true) @NotNull static @NotNull RGBAColor ofRGB(@org.jetbrains.annotations.Range(from=0L, to=255L) int r, @org.jetbrains.annotations.Range(from=0L, to=255L) int g, @org.jetbrains.annotations.Range(from=0L, to=255L) int b) -
ofRGBA
@Contract(value="_, _, _, _ -> new", pure=true) @NotNull static @NotNull RGBAColor ofRGBA(@org.jetbrains.annotations.Range(from=0L, to=255L) int r, @org.jetbrains.annotations.Range(from=0L, to=255L) int g, @org.jetbrains.annotations.Range(from=0L, to=255L) int b, @org.jetbrains.annotations.Range(from=0L, to=255L) int a) -
ofRGBA
-
ofRGB
-
ofRGB
@Contract(value="_, _, _ -> new", pure=true) @NotNull static @NotNull RGBAColor ofRGB(double r, double g, double b) -
ofRGBA
@Contract(value="_, _, _, _ -> new", pure=true) @NotNull static @NotNull RGBAColor ofRGBA(double r, double g, double b, double a) -
ofHSV
@Contract(value="_, _, _ -> new", pure=true) @NotNull static @NotNull HSVAColor ofHSV(double h, double s, double v) -
ofHSVA
@Contract(value="_, _, _, _ -> new", pure=true) @NotNull static @NotNull HSVAColor ofHSVA(double h, double s, double v, double a) -
toRGBAColor
ThisColorconverted toRGBAColor. If this is already aRGBAColor, this object itself may be returned.- Returns:
RGBAColor
-
toHSVAColor
ThisColorconverted toHSVAColor. If this is already aHSVAColor, this object itself may be returned.- Returns:
HSVAColor
-