public final class ColorUtil
extends Object
-
Method Summary
static void
HSLtoRGB(float h,
float s,
float l,
int @NotNull [] rgb)
static void
RGBtoHSL(int r,
int g,
int b,
float @NotNull [] hsl)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
withAlpha
public static Color withAlpha(@NotNull
@NotNull Color c,
float alpha)
-
toString
public static String toString(@Nullable
@Nullable Color c)
-
RGBtoHSL
public static void RGBtoHSL(int r,
int g,
int b,
float @NotNull [] hsl)
-
HSLtoRGB
public static void HSLtoRGB(float h,
float s,
float l,
int @NotNull [] rgb)