Class kh.color.HSL
Defined in: kh-color.js.
Constructor Attributes | Constructor Name and Description |
---|---|
kh.color.HSL(h, s, l)
h in [0, 360], s and l in [0, 100]
|
Field Attributes | Field Name and Description |
---|---|
the hue of the color in [0, 360]
|
|
the lightness of the color in [0, 100]
|
|
the saturation of the color in [0, 100]
|
Method Attributes | Method Name and Description |
---|---|
h2rgb(aV1, aV2, aH)
see http://www.easyrgb.com/index.php?X=MATH&H=19#text19
|
|
toHSV()
HSV conversion
|
|
toRGB()
RGB conversion
|
|
toString(aNoPercent)
String conversion
|
Field Detail
h
the hue of the color in [0, 360]
l
the lightness of the color in [0, 100]
s
the saturation of the color in [0, 100]
Method Detail
{Int}
h2rgb(aV1, aV2, aH)
see http://www.easyrgb.com/index.php?X=MATH&H=19#text19
- Parameters:
- {Float} aV1
- {Float} aV2
- {Float} aH
- Returns:
- {Int}
{HSV}
toHSV()
HSV conversion
- Returns:
- {HSV} object
{RGB}
toRGB()
RGB conversion
- Returns:
- {RGB} object
{String}
toString(aNoPercent)
String conversion
- Parameters:
- {Boolean} aNoPercent
- don't add '%' to s and l properties, optional, default = false.
- Returns:
- {String}