{"name":"colormap","version":"2.3.2","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.3.2","maintainers":[{"name":"jmmease","email":"jon.mease@gmail.com"},{"name":"chriddyp","email":"chris@plot.ly"},{"name":"verazabeida","email":"vera.zabeida@gmail.com"},{"name":"bpostlethwaite","email":"post.ben.here@gmail.com"},{"name":"alexcjohnson","email":"alex@plot.ly"},{"name":"nicolaskruchten","email":"nicolas@kruchten.com"},{"name":"antrg","email":"antoine@plot.ly"},{"name":"archmoj","email":"arch.mojtaba.samimi@gmail.com"},{"name":"xhlu","email":"xing.han.lu@mail.mcgill.ca"},{"name":"jody_plotly","email":"jody@plot.ly"},{"name":"dmt0","email":"dmt.shvedov@gmail.com"},{"name":"emmanuelle","email":"emmanuelle.gouillart@nsup.org"},{"name":"rpkyle","email":"ryan@plotly.com"},{"name":"andrefarzat","email":"andrefarzat@gmail.com"},{"name":"harryturr","email":"harrisonn@plot.ly"},{"name":"hammadtheone","email":"hammadtheone@gmail.com"}],"homepage":"https://github.com/bpostlethwaite/colormap#readme","bugs":{"url":"https://github.com/bpostlethwaite/colormap/issues"},"dist":{"shasum":"4422c1178ce563806e265b96782737be85815abf","tarball":"http://registry-npm.ywwl.com/colormap/download/colormap-2.3.2.tgz","fileCount":34,"integrity":"sha512-jDOjaoEEmA9AgA11B/jCSAvYE95r3wRoAyTf3LEHGiUVlNHJaL1mRkf5AyLSpQBVGfTEPwGEqCIzL+kgr2WgNA==","signatures":[{"sig":"MEQCIF08D9BOqRpAyWCoa9qN8ga8avzbG04fDSJRUpL1LM9CAiAeHqk3YFajter07nqmbuuJtvS9MrqjAyyaiCO/3PDB4A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":635608,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgGX8DCRA9TVsSAnZWagAA4nYP/0wHqka8e6PYG1gkViOm\nZk2VSMPzNjJSrA8Ex3wPy2NpWa+LU/gLMzWGkDPrF9p99MVosHft6wJt/fT0\n+/ga5OrQ4g8XA4Cxf+BMugbtDdFDJGhnkobAu90C3aHUhp7hIv/0CF6QxBBg\nU99Vu7C7wDNUUvkjzkY9SIK0F/CVPeqKVAI0D0+IMAoUp4SbzQwBcB3FzAAU\nCrFLKcCup+xVFpqWahIqdYVom+HhxrnQQ/bc6/UChmKF3UKNj9Xc/n37DaJ2\nxIobJT73kjfKzCnZ5oNa2ihb5Oe5+E6OtUVPorzfs1zp6EGPT4n4JSJdjMFF\nTv0bWpo3pvkGA9wX+t6sv0HVKy4eRGF8kgKbvouAquSCyBSnsITD9wAOfCU4\nGDI9+tXpYNeFq64/9oSRQzrtf38IR4vy7iw8H+LDa/wkaj3ubEUf+fsyUiKG\n2OmSwdLyccIIb4cKSJ4pTMPuuZ2Lh1VkUJ15HbdqhhaHbiRaOAC4NqWIDmk6\nWcsHMUXgvgXLhQolVwIp/ke+jdykbSN+FMWQftvgivQ3f5aQ7sNHq7DolGPl\nNPpXcwD7eT3IS+FQ820rqgYj4UKUyHXhRSaAvV1ZO7GuoSTnYrEi53xq5JjT\nLJodSIKIVYEySVuBgW4x62bik2Jl0DdmLqr/DiMLKlRFcD2x3dcb3mYRLYVg\nnbPx\r\n=PY9A\r\n-----END PGP SIGNATURE-----\r\n","size":441827,"noattachment":false,"key":"/colormap/-/colormap-2.3.2.tgz"},"main":"index.js","gitHead":"8d1981df335c89223dccd00990efbea771694561","scripts":{"draw":"budo test/draw.js","test":"node test.js","build":"browserify example/example.js -o example/bundle.js"},"_npmUser":{"name":"archmoj","email":"arch.mojtaba.samimi@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":"6.14.11","description":"Great looking color maps","directories":{},"_nodeVersion":"12.13.1","dependencies":{"lerp":"^1.0.3"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.7.0","color-space":"^1.14.3"},"_npmOperationalInternal":{"tmp":"tmp/colormap_2.3.2_1612283650698_0.5893965599075461","host":"s3://npm-registry-packages"},"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":1612283650881,"_cnpm_publish_time":1612283650881,"dist-tags":{"latest":"2.3.2"}}