{"name":"colormap","version":"0.1.0","keywords":["colormap","color","hex","rgb","colorgradient","colorrange"],"author":{"name":"bpostlethwaite"},"license":"MIT","_id":"colormap@0.1.0","maintainers":[{"name":"bpostlethwaite","email":"post.ben.here@gmail.com"}],"dist":{"shasum":"a2494bf64fde1d72ed1e4813ee5379736a366f67","tarball":"http://registry-npm.ywwl.com/colormap/download/colormap-0.1.0.tgz","integrity":"sha512-rRDHffgYGu7HUssHTDJT6bRz44T/FXDaAS0nK3kdjTI3xUhXEh5xRsyIKkv1xOx1JnYoNLOKVOFgfEPRFi496Q==","signatures":[{"sig":"MEUCIFXaG9/M7drM6RUEJ7RzRIIZ6nbW5iQVJJ+nuZWzR97/AiEA/IR94CN3s6eGJUXXpOyrXjHhkGgPcScUIYbiFFHCl9w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":1764,"noattachment":false,"key":"/colormap/-/colormap-0.1.0.tgz"},"main":"index.js","_from":".","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"bpostlethwaite","email":"post.ben.here@gmail.com"},"repository":{"url":"https://github.com/bpostlethwaite/colormap.git","type":"git"},"_npmVersion":"1.2.2","description":"get sweet rgb or hex colormaps","directories":{},"dependencies":{"colorgrad":"~0.1.0","arraytools":"0.0.1"},"readme":"# colormap [![Build Status](https://travis-ci.org/bpostlethwaite/colormap.png)](https://travis-ci.org/bpostlethwaite/colormap)\n\n![all colormap output](./colormaps.png)\n\n## Usage\n\n[![npm install colormap](https://nodei.co/npm/colormap.png?mini=true)](https://npmjs.org/package/colormap/)\n\n```js\nlet colormap = require('colormap')\n\nlet colors = colormap({\n    colormap: 'jet',\n    nshades: 10,\n    format: 'hex',\n    alpha: 1\n})\n```\n\n## API\n\n### list = colormap(options?)\n\nProperty | Default | Meaning\n---|---|---\n`colormap` | `'jet'` | Color map name from the image above or a custom color scale — a sequence of `{index, rgb}` objects, where index is `0..1` number and `rgb` is a length 3/4 array with values for the color stop.\n`nshades` | `72` | Number of colors in returned array, the minimum number depends on `colormap`.\n`format` | `'hex'` | `'hex'` for `#aabbcc`, `'rgbaString'` for `rgba(255, 255, 255, 1)`, `'rba'` for `[255, 255, 255, 1]`, `'float'` for `[1, 1, 1, 1]`.\n`alpha` | `1` | Alpha range, can be an array with alpha values or just 2 values for start/end colors. |\n\n\n## Credits\n\nColor maps are inspired by [matplotlib](https://github.com/d3/d3-scale#sequential-color-scales) color scales, [cmocean](https://github.com/matplotlib/cmocean) oceanographic colormaps, [cosine gradients](https://github.com/thi-ng/color/blob/master/src/gradients.org) and others. Thanks to authors of these libs for their invaluable work.\n","publish_time":1358994509153,"_cnpm_publish_time":1358994509153,"dist-tags":{"latest":"2.3.2"}}