joliclic
An color selector, in the RGB color space.
Note: The color rendering don't intend to have a pixel precision, but it is exact globally. This is due to the technics used, some layered SVG.
<kh-rgbpicker type="r-gb"/>
<kh-rgbpicker type="g-rb"/>
<kh-rgbpicker type="b-rg"/>
type: integer
The initial value of the red of the color (in [0, 255]). Default = 255
If you want to get or set the red value later, use the "r" property instead.
type: integer
The initial value of the green of the color (in [0, 255]). Default = 255
If you want to get or set the green value later, use the "g" property instead.
type: integer
The initial value of the blue of the color (in [0, 255]). Default = 255
If you want to get or set the blue value later, use the "b" property instead.
type: one of these values
r-gb:
a vertical scale to select red, and a square to select green and blue
g-rb:
a vertical scale to select green, and a square to select red and blue
b-rg:
a vertical scale to select blue, and a square to select red and green
type: integer
The width in pixel of the kh-xypicker. Default = 156
type: integer
The height in pixel of the kh-xypicker. Default = 156
type: integer
The width in pixel of the vertical scale. Default = 22
type: integer
The height in pixel of the vertical scale. Default = 156
type: integer
Get and set the red value of the selected color, in [O, 255]
type: integer
Get and set the green value of the selected color, in [O, 255]
type: integer
Get and set the blue value of the selected color, in [O, 255]
readonly (constants)
type: integer
these flags are used when change events are fired by the element, event.detail may contain one of this value:
KH_FLAG_UNKNOWN:
0
KH_FLAG_R:
1
KH_FLAG_G:
2
KH_FLAG_B:
3
KH_FLAG_GB:
4
KH_FLAG_RG:
5
KH_FLAG_RB:
6
Set the r, g, b properties. If the parameter silently is set as true, no change event will be dispatched.
Set the r property. If the parameter silently is set as true, no change event will be dispatched.
Set the g property. If the parameter silently is set as true, no change event will be dispatched.
Set the b property. If the parameter silently is set as true, no change event will be dispatched.
Only available for type "r-gb"
Set the g and b properties. If the parameter silently is set as true, no change event will be dispatched.
Only available for type "g-rb"
Set the r and b properties. If the parameter silently is set as true, no change event will be dispatched.
Only available for type "b-rg"
Set the r and g properties. If the parameter silently is set as true, no change event will be dispatched.
Khromaxul - version: 0.3alpha - 2009-07-30