ColorPicker
Simple color picker component. Chuck it on a page, in a Dialog, in a Popover etc.
Installation
$ component install component/color-picker
Example
var ColorPicker = ; var picker = ;pickerel;picker;
Events
change
(color) when the color selection changes
API
ColorPicker#size(n)
Define the color picker width / height.
ColorPicker#width(n)
Define the color picker width.
ColorPicker#height(n)
Define the color picker height.
ColorPicker#color()
Get the current selected color object with .r
, .g
, and .b
values. The .toString()
method on these color objects is the
string representation such as "rgb(255,0,0)".
ColorPicker#color(str)
Set the color value to str
.
License
MIT