goog.color.alpha
Functions
extractAlpha( colorWithAlpha ) → string
string
extractHexColor( colorWithAlpha ) → string
string
hexToRgbaStyle( hexColor ) → string
string
hslaArrayToHex( hsla ) → string
string
hslaArrayToRgbaStyle( hsla ) → string
string
hslaToHex( h, s, l, a ) → string
string
Converts a color from HSLA to hex representation.
Parameters |
| ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
Converts a color from HSLA color space to RGBA color space.
Parameters |
| ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
hslaToRgbaStyle( h, s, l, a ) → string
string
Converts a color from HSLA to an RGBA style string.
Parameters |
| ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
hsvaArrayToHex( hsva ) → string
string
hsvaToHex( h, s, v, a ) → string
string
rgbaArrayToHex( rgba ) → string
string
rgbaArrayToRgbaStyle( rgba ) → string
string
rgbaToHex( r, g, b, a ) → string
string
Converts a color from RGBA color space to HSLA color space.
Modified from http://en.wikipedia.org/wiki/HLS_color_space
.
Parameters |
| ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Returns |
|
rgbaToRgbaStyle( r, g, b, a ) → string
string