Package com.github.weisj.jsvg.util
Class ColorUtil
java.lang.Object
com.github.weisj.jsvg.util.ColorUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic intcomputeLuminance(int r, int g, int b) static intdiv255(int x) static voidHSLtoRGB(float h, float s, float l, int @NotNull [] rgb) static intlinearRGBtoSRGB(int argb) static intlinearRGBtoSRGBBand(int value) static voidlinearRGBtoSRGBinPlace(int @NotNull [] argb) static voidlinearRGBtoSRGBPreInPlace(int @NotNull [] argb) static voidRGBPretoHSL(int r, int g, int b, int a, float @NotNull [] hsl) static intsRGBtoLinearRGB(int argb) static intsRGBtoLinearRGBBand(int value) static voidsRGBtoLinearRGBinPlace(int @NotNull [] argb) static voidsRGBtoLinearRGBPreInPlace(int @NotNull [] argb) static inttoRgbRange(double value) static Stringstatic Color
-
Method Details
-
div255
public static int div255(int x) -
computeLuminance
public static int computeLuminance(int r, int g, int b) -
toRgbRange
public static int toRgbRange(double value) -
withAlpha
-
toString
-
RGBPretoHSL
public static void RGBPretoHSL(int r, int g, int b, int a, float @NotNull [] hsl) -
HSLtoRGB
public static void HSLtoRGB(float h, float s, float l, int @NotNull [] rgb) -
sRGBtoLinearRGBinPlace
public static void sRGBtoLinearRGBinPlace(int @NotNull [] argb) -
linearRGBtoSRGBinPlace
public static void linearRGBtoSRGBinPlace(int @NotNull [] argb) -
sRGBtoLinearRGBPreInPlace
public static void sRGBtoLinearRGBPreInPlace(int @NotNull [] argb) -
linearRGBtoSRGBPreInPlace
public static void linearRGBtoSRGBPreInPlace(int @NotNull [] argb) -
sRGBtoLinearRGBBand
public static int sRGBtoLinearRGBBand(int value) -
sRGBtoLinearRGB
public static int sRGBtoLinearRGB(int argb) -
linearRGBtoSRGBBand
public static int linearRGBtoSRGBBand(int value) -
linearRGBtoSRGB
public static int linearRGBtoSRGB(int argb)
-