packHSL
packHSL: (number, number, number) -> numberHue, saturation and luminance packed as the game's 16-bit HSL, a signed 16-bit integer.
| Method | Returns | Description |
|---|---|---|
packHSL(number, number, number) | number | Hue, saturation and luminance packed as the game's 16-bit HSL, a signed 16-bit integer. |
unpackHue(number) | number | The hue of a packed HSL. |
unpackSaturation(number) | number | The saturation of a packed HSL. |
unpackLuminance(number) | number | The luminance of a packed HSL. |
formatHSL(number) | string | A packed HSL as HHhSsLLl. |
rgbToHSL(number, number) | number | An RGB colour as the game's packed HSL, at brightness. |
| Field | Type | Description |
|---|---|---|
HUE_MAX | number | JagexColor.HUE_MAX: 63. |
LUMINANCE_MAX | number | JagexColor.LUMINANCE_MAX: 127. |
SATURATION_MAX | number | JagexColor.SATURATION_MAX: 7. |
packHSLpackHSL: (number, number, number) -> numberHue, saturation and luminance packed as the game's 16-bit HSL, a signed 16-bit integer.
unpackHueunpackHue: (number) -> numberThe hue of a packed HSL.
unpackSaturationunpackSaturation: (number) -> numberThe saturation of a packed HSL.
unpackLuminanceunpackLuminance: (number) -> numberThe luminance of a packed HSL.
formatHSLformatHSL: (number) -> stringA packed HSL as HHhSsLLl.
rgbToHSLrgbToHSL: (number, number) -> numberAn RGB colour as the game's packed HSL, at brightness.