Package com.github.weisj.jsvg.util
Class ColorUtil
- java.lang.Object
-
- com.github.weisj.jsvg.util.ColorUtil
-
public final class ColorUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ColorUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
HSLtoRGB(float h, float s, float l, int @NotNull [] rgb)
private static float
hue2RGB(float v1, float v2, float vH)
static void
RGBtoHSL(int r, int g, int b, float @NotNull [] hsl)
static java.lang.String
toString(@Nullable java.awt.Color c)
static java.awt.Color
withAlpha(@NotNull java.awt.Color c, float alpha)
-
-
-
Method Detail
-
withAlpha
public static java.awt.Color withAlpha(@NotNull @NotNull java.awt.Color c, float alpha)
-
toString
public static java.lang.String toString(@Nullable @Nullable java.awt.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)
-
hue2RGB
private static float hue2RGB(float v1, float v2, float vH)
-
-