https://github.com/ripjar/jquery.colorbrewer
A simple bootstrap colour picker utilising the colorbrewer scales.
https://github.com/ripjar/jquery.colorbrewer
Last synced: 3 months ago
JSON representation
A simple bootstrap colour picker utilising the colorbrewer scales.
- Host: GitHub
- URL: https://github.com/ripjar/jquery.colorbrewer
- Owner: ripjar
- License: mit
- Created: 2014-11-04T15:39:14.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-27T11:11:34.000Z (about 11 years ago)
- Last Synced: 2025-10-05T19:06:08.666Z (9 months ago)
- Language: JavaScript
- Size: 175 KB
- Stars: 4
- Watchers: 25
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
jquery.colorbrewer
==================
A simple bootstrap colour picker utilising the [ColorBrewer][1] scales.

## Usage
this.$('.color-picker').colorBrewer({
container: '#color-picker-modal', // selector or modal element
colors: colorbrewer, // colour swatches
preview: this.$('.color-picker-preview') // selector element to populate with selected colour for preview
});
The example utilises the ColorBrewer JavaScript collection provided by [mbostock][2] [here][3].
[1]: http://colorbrewer2.org/
[2]: https://github.com/mbostock
[3]: https://raw.githubusercontent.com/mbostock/d3/master/lib/colorbrewer/colorbrewer.js