Closure Library API Documentation
Go to class or file:
hsvapalette.js
No description.
Useful links
Demo
Source Code
Git
File Location
/goog/ui/hsvapalette.js
Classes
goog.ui.HsvaPalette
Creates an HSVA palette. Allows a user to select the hue, saturation, value/brightness and alpha/opacity.
Public
Protected
Private
Global Functions
goog.ui.HsvaPalette.
parseColorRgbaHex_
(
color
)
⇒
!
Array
Parses a #rrggbbaa color string.
Arguments:
color
:
string
The color and alpha in #rrggbbaa format.
Returns:
!
Array
A two element array [color, alpha], where color is #rrggbb and alpha is in [0, 1].
code »
goog.ui.HsvaPalette.
parseUserInput_
(
value
)
⇒
Array
Parses an #rrggbb or #rrggbbaa color string.
Arguments:
value
:
string
User-entered color value.
Returns:
Array
A two element array [color, alpha], where color is #rrggbb and alpha is in [0, 1]. Null if the argument was invalid.
code »
Directory ui
File Reference