Color conversion methods - make public to give use to external scripts.
Methods
(static) hexToInt(hex) → {Integer}
Parameters:
Name | Type | Description |
---|---|---|
hex |
string |
Returns:
- Type
- Integer
(static) hexToRgba(hex) → {module:jPicker.RGBA}
Parameters:
Name | Type | Description |
---|---|---|
hex |
string |
Returns:
- Type
- module:jPicker.RGBA
(static) hsvToRgb(hsv) → {module:jPicker.RGB}
Parameters:
Name | Type | Description |
---|---|---|
hsv |
module:jPicker.HSV |
Returns:
- Type
- module:jPicker.RGB
(static) intToHex(dec) → {string}
Parameters:
Name | Type | Description |
---|---|---|
dec |
Integer |
Returns:
- Type
- string
(static) rgbaToHex(rgba) → {string}
Parameters:
Name | Type | Description |
---|---|---|
rgba |
module:jPicker.RGBA |
Returns:
- Type
- string
(static) rgbToHsv(rgb) → {module:jPicker.HSV}
Parameters:
Name | Type | Description |
---|---|---|
rgb |
module:jPicker.RGB |
Returns:
- Type
- module:jPicker.HSV
(static) validateHex(hex) → {string}
Parameters:
Name | Type | Description |
---|---|---|
hex |
string |
Returns:
- Type
- string