{"_id":"@cschear/color-thief","_rev":"4-16bb558d4bfdd84f1c22ccde85df4845","name":"@cschear/color-thief","description":"Get the dominant color or color palette from an image.","dist-tags":{"beta":"2.0.2","latest":"2.0.4"},"versions":{"2.0.2":{"name":"@cschear/color-thief","version":"2.0.2","author":{"name":"Lokesh Dhakar","email":"lokesh.dhakar@gmail.com","url":"http://lokeshdhakar.com/"},"description":"Get the dominant color or color palette from an image.","keywords":["color","palette","sampling","image","picture","photo","canvas"],"homepage":"http://lokeshdhakar.com/projects/color-thief/","repository":{"type":"git","url":"git+https://github.com/lokesh/color-thief.git"},"bugs":{"url":"https://github.com/lokesh/color-thief/issues"},"licenses":[{"type":"MIT","url":"https://raw.githubusercontent.com/lokesh/color-thief/master/LICENSE/"}],"main":"dist/color-thief.min.js","devDependencies":{},"directories":{"example":"examples"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"ISC","_id":"@cschear/color-thief@2.0.2","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"cschear","email":"chris@schear.us"},"dist":{"integrity":"sha512-aSIw+srZwkOeXpW9MWONGj6giZfp+URglEImudLDpMZznYs3w/XbHAKWdUOkqlGjn90JXwsu1dR5lGPVLpe+Ow==","shasum":"05847d1ad7b62b2101ca7374d7cadae145e248b1","tarball":"https://registry.npmjs.org/@cschear/color-thief/-/color-thief-2.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB3J+WHCF7wtrCb1EGav9jTOeSVTeRdhAseKx3ar8si8AiEAgkflnWsE9AAYuM2QEOI25fdyJr6Res7DwG9C2+3SYq8="}]},"maintainers":[{"name":"cschear","email":"chris@schear.us"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-thief-2.0.2.tgz_1502401758986_0.8245121350046247"}},"2.0.3":{"name":"@cschear/color-thief","version":"2.0.3","author":{"name":"Lokesh Dhakar","email":"lokesh.dhakar@gmail.com","url":"http://lokeshdhakar.com/"},"description":"Get the dominant color or color palette from an image.","keywords":["color","palette","sampling","image","picture","photo","canvas"],"homepage":"http://lokeshdhakar.com/projects/color-thief/","repository":{"type":"git","url":"git+https://github.com/cschear-cricut/color-thief.git"},"bugs":{"url":"https://github.com/lokesh/color-thief/issues"},"licenses":[{"type":"MIT","url":"https://raw.githubusercontent.com/lokesh/color-thief/master/LICENSE/"}],"main":"dist/color-thief.min.js","devDependencies":{"grunt":"~1.0.1","grunt-contrib-watch":"^1.0.0","grunt-contrib-connect":"^1.0.2","grunt-contrib-uglify":"~2.0.0","grunt-contrib-jshint":"^0.11.2","grunt-jscs":"^1.8.0"},"gitHead":"6ff5d9f392a940ae07e3511be9427fd48bb47c05","_id":"@cschear/color-thief@2.0.3","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"cschear","email":"chris@schear.us"},"dist":{"integrity":"sha512-tSxMCGixh16cgmJOd7y1zw7zkgPTjRXN5hlN7tkcHVgohv2isxtSKrcbmafmYKZVrSQWKC6TZq5hAU+twR2BrA==","shasum":"eb2cfad0f17b1277d3acafbb985cf48d17f0b6e4","tarball":"https://registry.npmjs.org/@cschear/color-thief/-/color-thief-2.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEviicr6U8aWaZpiI/0sW6n11TxB3FwZiXEX2pTbGj7KAiEA9ZZ8S7C5zlOFTsezmS63vKNWRq1Lrb3Gf15I7cE/V2c="}]},"maintainers":[{"name":"cschear","email":"chris@schear.us"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-thief-2.0.3.tgz_1502919959186_0.5162534103728831"}},"2.0.4":{"name":"@cschear/color-thief","version":"2.0.4","author":{"name":"Lokesh Dhakar","email":"lokesh.dhakar@gmail.com","url":"http://lokeshdhakar.com/"},"description":"Get the dominant color or color palette from an image.","keywords":["color","palette","sampling","image","picture","photo","canvas"],"homepage":"http://lokeshdhakar.com/projects/color-thief/","repository":{"type":"git","url":"git+https://github.com/cschear-cricut/color-thief.git"},"bugs":{"url":"https://github.com/lokesh/color-thief/issues"},"licenses":[{"type":"MIT","url":"https://raw.githubusercontent.com/lokesh/color-thief/master/LICENSE/"}],"main":"dist/color-thief.min.js","devDependencies":{"grunt":"~1.0.1","grunt-contrib-watch":"^1.0.0","grunt-contrib-connect":"^1.0.2","grunt-contrib-uglify":"~2.0.0","grunt-contrib-jshint":"^0.11.2","grunt-jscs":"^1.8.0"},"gitHead":"9db69449ab53262b1877dd834bdbbef2911b490f","_id":"@cschear/color-thief@2.0.4","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"cschear","email":"chris@schear.us"},"dist":{"integrity":"sha512-6BcndJlWYJUFRYK6nJdYfauMHCjjbr1SvnipD3SPKQKdI8XksqRx0v0atpTGT9kn6F0A/5sN3LIXZIhvxjJfTg==","shasum":"c415ab15a8b047589825fc707d2d695408e3e9bf","tarball":"https://registry.npmjs.org/@cschear/color-thief/-/color-thief-2.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+yztDKfajcXMZ4SLmysOJU4WT7SVczoAvLkEzFvQx3AIgG+c/tvWUNr9oJ0AzM8zjz2k1Agzwpz6MmVhBT8hwLew="}]},"maintainers":[{"name":"cschear","email":"chris@schear.us"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-thief-2.0.4.tgz_1502940453551_0.10620956402271986"}}},"readme":"# Color Thief\r\n\r\nA script for grabbing the color palette from an image. Uses Javascript and the canvas tag to make it happen.\r\n\r\n[See a Demo](http://lokeshdhakar.com/projects/color-thief) | [Read more on my blog](http://lokeshdhakar.com/color-thief)\r\n\r\n\r\n## How to use\r\n\r\n### Get the dominant color from an image\r\n```js\r\nvar colorThief = new ColorThief();\r\ncolorThief.getColor(sourceImage);\r\n```\r\n\r\n```js\r\ngetColor(sourceImage[, quality])\r\nreturns [num, num, num]\r\n```\r\n\r\n### Build a color palette from an image\r\n\r\nIn this example, we build an 8 color palette.\r\n\r\n```js\r\nvar colorThief = new ColorThief();\r\ncolorThief.getPalette(sourceImage, 8);\r\n```\r\n\r\n```js\r\ngetPalette(sourceImage[, colorCount, quality])\r\nreturns [ [num, num, num], [num, num, num], ... ]\r\n```\r\n","maintainers":[{"name":"cschear","email":"chris@schear.us"}],"time":{"modified":"2022-04-05T02:01:41.235Z","created":"2017-08-10T21:49:19.132Z","2.0.2":"2017-08-10T21:49:19.132Z","2.0.3":"2017-08-16T21:45:59.309Z","2.0.4":"2017-08-17T03:27:33.902Z"},"homepage":"http://lokeshdhakar.com/projects/color-thief/","keywords":["color","palette","sampling","image","picture","photo","canvas"],"repository":{"type":"git","url":"git+https://github.com/cschear-cricut/color-thief.git"},"author":{"name":"Lokesh Dhakar","email":"lokesh.dhakar@gmail.com","url":"http://lokeshdhakar.com/"},"bugs":{"url":"https://github.com/lokesh/color-thief/issues"},"readmeFilename":"README.md","users":{"sterlingrules":true}}