{"name":"colormap","version":"2.2.0","keywords":["colormap","color map","color","hex","rgb","color-space","cubehelix","inferno","magma","plasma","viridis","matplotlib","oceanography","seismic","color gradient","color range","colorscale","color scale","plot","graph"],"author":{"name":"bpostlethwaite"},"license":"MIT","_id":"colormap@2.2.0","maintainers":[{"name":"bpostlethwaite","email":"post.ben.here@gmail.com"}],"homepage":"https://github.com/bpostlethwaite/colormap#readme","bugs":{"url":"https://github.com/bpostlethwaite/colormap/issues"},"dist":{"shasum":"914fe04320558a1fc0582d01e0f47bc913d8c8a5","tarball":"http://registry-npm.ywwl.com/colormap/download/colormap-2.2.0.tgz","integrity":"sha512-Hq8egXSfPE2nrhsW/9GIwKWtVD86u/HY80ZmIfyCQ7OQPWAXKqnxiHAlIvk7tXAn5J7uQJ6eU4h4OlJsUiGrhA==","signatures":[{"sig":"MEQCIG4xo3Y9aKU7iJX458nZpOBwpj3sSiE/QnS9vrlZzjqBAiAWXTtju84dOtW0BFzD/eqFxaNjBKbEU/N/pVvddYqTVA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":6803,"noattachment":false,"key":"/colormap/-/colormap-2.2.0.tgz"},"main":"index.js","_from":".","files":["index.js","colorScales.js"],"_shasum":"914fe04320558a1fc0582d01e0f47bc913d8c8a5","gitHead":"1635125089e73bac244c7286c654d7c33cbefe15","scripts":{"draw":"budo test/draw.js","test":"tap test/*.js","build":"browserify example/example.js -o example/bundle.js"},"_npmUser":{"name":"bpostlethwaite","email":"post.ben.here@gmail.com"},"testling":{"files":"test/*.js","browsers":["ie/9..latest","chrome/20..latest","firefox/13..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6"]},"repository":{"url":"git+https://github.com/bpostlethwaite/colormap.git","type":"git"},"_npmVersion":"2.14.7","description":"Great looking color maps","directories":{},"_nodeVersion":"4.2.2","dependencies":{"clone":"^1.0.2","arraytools":"^1.1.2"},"devDependencies":{"tap":"^5.1","color-space":"^1.14.3"},"_npmOperationalInternal":{"tmp":"tmp/colormap-2.2.0.tgz_1465326838339_0.4965969552285969","host":"packages-12-west.internal.npmjs.com"},"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":1465326840924,"_cnpm_publish_time":1465326840924,"dist-tags":{"latest":"2.3.2"}}