{"_id":"color-thief-browser","_rev":"4-a97ca67e2524933eb4e48417d267042d","name":"color-thief-browser","description":"Get the dominant color or color palette from an image (Browser version).","dist-tags":{"latest":"2.0.2"},"versions":{"2.0.1":{"name":"color-thief-browser","version":"2.0.1","author":{"name":"Lokesh Dhakar","email":"lokesh.dhakar@gmail.com","url":"http://lokeshdhakar.com/"},"description":"Get the dominant color or color palette from an image (Browser version).","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":{"grunt":"~0.4.2","grunt-contrib-compass":"^0.7.2","grunt-contrib-watch":"^0.5.3","grunt-contrib-connect":"^0.7.1","grunt-ftp-deploy":"^0.1.1","grunt-contrib-uglify":"~0.4.0","grunt-contrib-jshint":"~0.9.2"},"gitHead":"62f5ad779ff39dea78ccfaa0ce46db6f91a33c2c","_id":"color-thief-browser@2.0.1","scripts":{},"_shasum":"462ebfead5ea96cad491b11eac7a2eb67fc0e2a6","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"leeroy","email":"leeroy.brun@gmail.com"},"maintainers":[{"name":"leeroy","email":"leeroy.brun@gmail.com"}],"dist":{"shasum":"462ebfead5ea96cad491b11eac7a2eb67fc0e2a6","tarball":"https://registry.npmjs.org/color-thief-browser/-/color-thief-browser-2.0.1.tgz","integrity":"sha512-nVZivl0IFMWwl7R3h0WCjVMv+NXESi/EQcAKZy0qsYuiwfFE15VnGPS5QfU2C3B+rUXDiKJz83VS+Bh87t7g8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOo7wn6tUnxaAppByfG1hQZkYyR4RCMXhepaaUvrmeVAIhAIt64eIYQRbsln2kjKvWj7uvUrEoA9eCUgWXioBciyZp"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/color-thief-browser-2.0.1.tgz_1476966586238_0.29505319288000464"}},"2.0.2":{"name":"color-thief-browser","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 (Browser version).","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":{"grunt":"~0.4.2","grunt-contrib-compass":"^0.7.2","grunt-contrib-watch":"^0.5.3","grunt-contrib-connect":"^0.7.1","grunt-ftp-deploy":"^0.1.1","grunt-contrib-uglify":"~0.4.0","grunt-contrib-jshint":"~0.9.2"},"gitHead":"cdf8de7a24203dc82d7a14f22f3e058b0d97bf12","_id":"color-thief-browser@2.0.2","scripts":{},"_shasum":"6fbe6af73717e706802cf01ed16647b2683ff0c2","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"leeroy","email":"leeroy.brun@gmail.com"},"maintainers":[{"name":"leeroy","email":"leeroy.brun@gmail.com"}],"dist":{"shasum":"6fbe6af73717e706802cf01ed16647b2683ff0c2","tarball":"https://registry.npmjs.org/color-thief-browser/-/color-thief-browser-2.0.2.tgz","integrity":"sha512-dXHq3ytLWEN7Nbu+oZAbtBP/TRd3uNT1Ll38idklwgr8Cng3XGI7bzMz6xWYID+zPd7AupdHpyNYVacQ8uhK0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDAAukYu4goJbaDCvaZ1KelCJVWK2FHqBxLrPf45jkUWAiBnvr1VWeE+4VAbx0i6hMToX2/r7ut9c4EF7IKz9uAhug=="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/color-thief-browser-2.0.2.tgz_1476966994029_0.059263862669467926"}}},"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 {r: num, g: num, b: 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\r\n\r\n## Changelog\r\n\r\n### v2.0.1 - 2015-10-05\r\n\r\n- [Fix] Remove left-over references to Creative Commons License. MIT all-around.\r\n- [Fix] MMCQ lib issues [#16](https://github.com/lokesh/color-thief/pull/16) by @nobodypb\r\n- [Fix] Incorrect bower.json main property path. [#37](https://github.com/lokesh/color-thief/pull/37) by @chellem, @joscha, @dkushner\r\n- [Fix] Quality less than 1 causes infinite loop [#33](https://github.com/lokesh/color-thief/pull/33) by @nteike\r\n- [Fix] MMCQ.quantize(...) can return false or undefined thus breaking the application (#55)[https://github.com/lokesh/color-thief/pull/55] by @mhahmadi\r\n- [Remove] Drop version number from bower.json [#70](https://github.com/lokesh/color-thief/pull/70) by @kkirsche\r\n\r\n### v2.0.0 - 2013-06-23\r\n\r\n- Embed quantize into color thief file\r\n- Strip out jQuery requirement\r\n- Credit those who helped with edits - Nathan Spady for drag and drop support.\r\n","maintainers":[{"name":"leeroy","email":"leeroy.brun@gmail.com"}],"time":{"modified":"2022-06-13T06:31:37.359Z","created":"2016-10-20T12:29:47.882Z","2.0.1":"2016-10-20T12:29:47.882Z","2.0.2":"2016-10-20T12:36:34.823Z"},"homepage":"http://lokeshdhakar.com/projects/color-thief/","keywords":["color","palette","sampling","image","picture","photo","canvas"],"repository":{"type":"git","url":"git+https://github.com/lokesh/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"}