Package net.runelite.api
Class JagexColor
- java.lang.Object
-
- net.runelite.api.JagexColor
-
public final class JagexColor extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
HUE_MAX
static int
LUMINANCE_MAX
static int
SATURATION_MAX
-
Constructor Summary
Constructors Constructor Description JagexColor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
formatHSL(short hsl)
static short
packHSL(int hue, int saturation, int luminance)
static short
rgbToHSL(int rgb, double brightness)
static int
unpackHue(short hsl)
static int
unpackLuminance(short hsl)
static int
unpackSaturation(short hsl)
-
-
-
Field Detail
-
HUE_MAX
public static final int HUE_MAX
- See Also:
- Constant Field Values
-
SATURATION_MAX
public static final int SATURATION_MAX
- See Also:
- Constant Field Values
-
LUMINANCE_MAX
public static final int LUMINANCE_MAX
- See Also:
- Constant Field Values
-
-
Method Detail
-
packHSL
public static short packHSL(int hue, int saturation, int luminance)
-
unpackHue
public static int unpackHue(short hsl)
-
unpackSaturation
public static int unpackSaturation(short hsl)
-
unpackLuminance
public static int unpackLuminance(short hsl)
-
formatHSL
public static String formatHSL(short hsl)
-
rgbToHSL
public static short rgbToHSL(int rgb, double brightness)
-
-