Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saikocat/colorbrewer
ColorBrewer by Cynthia Brewer packaged as a node module (for browersify)
https://github.com/saikocat/colorbrewer
Last synced: about 2 months ago
JSON representation
ColorBrewer by Cynthia Brewer packaged as a node module (for browersify)
- Host: GitHub
- URL: https://github.com/saikocat/colorbrewer
- Owner: saikocat
- License: other
- Created: 2014-06-30T14:13:08.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-11T11:55:58.000Z (12 months ago)
- Last Synced: 2024-07-18T18:32:58.989Z (2 months ago)
- Language: CSS
- Size: 52.7 KB
- Stars: 36
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
colorbrewer
===========Color specifications and designs developed by Cynthia Brewer (http://colorbrewer2.org/).
This is a shim module of colorbrewer2 by Cythina Brewer for browserify.
It is also a shim for the [files provided in d3.js lib](https://github.com/d3/d3-scale-chromatic).
Access color schemes by name and the number of discrete colors needed, such as `colorbrewer.Blues[5]`. For a list of color schemes by group, use `colorbrewer.schemeGroups`. Example:
```js
const colorbrewer = require('colorbrewer');console.log(colorbrewer.schemeGroups.sequential);
// ["BuGn","BuPu","GnBu",...]console.log(colorbrewer.Blues[5]);
// ["#eff3ff","#bdd7e7","#6baed6","#3182bd","#08519c"]
```## Notes:
* There is a compatibility issue with `1.4.0` so do lock your version to `1.3.0` for now
* `1.5.0` is using rollup to generate both UMD and ES module so hopefully this will resolve the problems for most of us.## Huge thanks to:
* Connor Peet - [connor4312](https://github.com/connor4312) - for adding
TypeScript support since version `1.4.0`