joliclic

home

Class Index | File Index

Classes


Class kh.color.HSL


Defined in: kh-color.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
kh.color.HSL(h, s, l)
h in [0, 360], s and l in [0, 100]
Field Summary
Field Attributes Field Name and Description
 
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 Summary
Method Attributes Method Name and Description
 
h2rgb(aV1, aV2, aH)
see http://www.easyrgb.com/index.php?X=MATH&H=19#text19
 
HSV conversion
 
RGB conversion
 
toString(aNoPercent)
String conversion
Class Detail
kh.color.HSL(h, s, l)
h in [0, 360], s and l in [0, 100]
Parameters:
h
s
l
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}

Documentation generated by JsDoc Toolkit 2.3.0

Khromaxul - version: 0.3alpha - Thu Jul 30 2009 14:37:38 GMT+0200 (CEST)