Package Exports
- color-range-picker
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (color-range-picker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Color Range Picker
Inspired by @wieringen's tinycolorpicker this small library generates a color circle from a configurable set of colors and can generate a range of shades from the picked color.
Install
npm i color-range-picker -D
Public properties and methods
| Name | Type | Description | Returns |
|---|---|---|---|
hex |
accessor | Get the hexadecimal notation of the last chosen color | String |
rgb |
accessor | Get the rgb notation of the last chosen color | String |
RGBToHex |
static method | Convert a RGB array or string to hexadecimal string | String |
range |
method | Generate a range of 10 colors from the currently picked color | Array |
toggle |
method | Show or hide the ui | void |
destroy |
method | Remove the UI from the DOM | void |