{"_id":"@codemotion/color-thief","_rev":"18-858084cbba625fcc56234a712daeccd8","name":"@codemotion/color-thief","description":"Get the dominant color or color palette from an image.","dist-tags":{"latest":"2.0.5"},"versions":{"2.0.2":{"name":"@codemotion/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":{"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":"d05ec978b099cf9cf4341749f0955fb4b2e6dad0","_id":"@codemotion/color-thief@2.0.2","scripts":{},"_shasum":"50f2b252cf1a2803dd44c3bce6129365caead192","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.1","_npmUser":{"name":"dimitarnestorov","email":"mitkones@gmail.com"},"dist":{"shasum":"50f2b252cf1a2803dd44c3bce6129365caead192","tarball":"https://registry.npmjs.org/@codemotion/color-thief/-/color-thief-2.0.2.tgz","integrity":"sha512-k1OizUurGYp9pEnrYp6nxr+KkyP/L/4LEpQsrCEKNY5LKjJ9MjdrdTj6QLaj0zuqMO/lWypt31ZlxqwFw32iAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCG5Rxl0jaUJT2iikPKKEf4QRpQKXymaYc0ORKDF+/6rQIgOriyEzOBM5IYfVZ2MwijZmzrHjyV2remNwu8baH8MzM="}]},"maintainers":[{"name":"dimitarnestorov","email":"mitkones@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-thief-2.0.2.tgz_1499098377812_0.8795914170332253"},"directories":{}},"2.0.3":{"name":"@codemotion/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/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":"~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":"cd87feda25c8cb668a03e573b2211174edad999e","_id":"@codemotion/color-thief@2.0.3","scripts":{},"_shasum":"32042c0b5d9135a2bdcb5c1064d8e470e30c0767","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.1","_npmUser":{"name":"dimitarnestorov","email":"mitkones@gmail.com"},"dist":{"shasum":"32042c0b5d9135a2bdcb5c1064d8e470e30c0767","tarball":"https://registry.npmjs.org/@codemotion/color-thief/-/color-thief-2.0.3.tgz","integrity":"sha512-/EDD5pF470zUYU7FNPy134HNVaAcTT7Ty/d/KRaEcli77mfm6Zo2FCeKC/CUTEDhBdYybJa0eFc7qVqZrNXQXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6PL1NCP4ObMYhDAVWDKRRR+G1swGQsVj2gUReILd4PAIgDvDKfRypmwbkGW7ikpGyiYtwIA5VjLZzEZTG/5iNUag="}]},"maintainers":[{"name":"dimitarnestorov","email":"mitkones@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-thief-2.0.3.tgz_1499101063498_0.6521481634117663"},"directories":{}},"2.0.4":{"name":"@codemotion/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/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":"src/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":"cd87feda25c8cb668a03e573b2211174edad999e","_id":"@codemotion/color-thief@2.0.4","scripts":{},"_shasum":"44f2eb86d94b24b0520d88e677b6b1cd36f9626d","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.1","_npmUser":{"name":"dimitarnestorov","email":"mitkones@gmail.com"},"dist":{"shasum":"44f2eb86d94b24b0520d88e677b6b1cd36f9626d","tarball":"https://registry.npmjs.org/@codemotion/color-thief/-/color-thief-2.0.4.tgz","integrity":"sha512-d357cKVG6Pd4+vcg97sJ3S9AqKQfS0jd2tKfuWDRTCpyFVw/myQTlKFpc116C2k34Sv1VKV39lL8xO6PEe6Ckg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFMri3ZtHfjYYUJAAkV9FrAbU2JZ5SMTUenk7flkxXPZAiBTfUeLmrfxSvRgg3uMYmpJ73WeZ24f8bs5AmcFKcpp3Q=="}]},"maintainers":[{"name":"dimitarnestorov","email":"mitkones@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-thief-2.0.4.tgz_1499101105471_0.2007161807268858"},"directories":{}},"2.0.5":{"name":"@codemotion/color-thief","version":"2.0.5","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":"src/color-thief.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":"cd87feda25c8cb668a03e573b2211174edad999e","_id":"@codemotion/color-thief@2.0.5","scripts":{},"_shasum":"22bb837a33a535e588f4e3c1bb1cbcbebf91f997","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.1","_npmUser":{"name":"dimitarnestorov","email":"mitkones@gmail.com"},"dist":{"shasum":"22bb837a33a535e588f4e3c1bb1cbcbebf91f997","tarball":"https://registry.npmjs.org/@codemotion/color-thief/-/color-thief-2.0.5.tgz","integrity":"sha512-OMD2b2hD6/ZRNsswSQXcbiVB8KYKLetps4CearT/EkPqL47C4S2EwybzuROg5wKIBiFn2YSLNhkdAvnBF6JbvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFOQpN8ZPBnhq3Mgwjq6Nkthsg3smYuecFSpvUDh3gBgIgV1al/f2hg1br3FAiqIsRy+siXb5vdft64cjk7+wIICw="}]},"maintainers":[{"name":"dimitarnestorov","email":"mitkones@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-thief-2.0.5.tgz_1499101535101_0.18311579222790897"},"directories":{}}},"readme":"# Color Thief\n\nA script for grabbing the color palette from an image. Uses Javascript and the canvas tag to make it happen.\n\n[See a Demo](http://lokeshdhakar.com/projects/color-thief) | [Read more on my blog](http://lokeshdhakar.com/color-thief)\n\n\n## How to use\n\n### Get the dominant color from an image\n```js\nvar colorThief = new ColorThief();\ncolorThief.getColor(sourceImage);\n```\n\n```js\ngetColor(sourceImage[, quality])\nreturns [num, num, num]\n```\n\n### Build a color palette from an image\n\nIn this example, we build an 8 color palette.\n\n```js\nvar colorThief = new ColorThief();\ncolorThief.getPalette(sourceImage, 8);\n```\n\n```js\ngetPalette(sourceImage[, colorCount, quality])\nreturns [ [num, num, num], [num, num, num], ... ]\n```\n","maintainers":[{"email":"uffo686@gmail.com","name":"uffo"},{"email":"nikolay@yanev.co","name":"nyanev"},{"email":"nikolas181492@gmail.com","name":"nikolay_543"}],"time":{"modified":"2023-05-30T09:21:15.683Z","created":"2017-07-03T16:12:59.414Z","2.0.2":"2017-07-03T16:12:59.414Z","2.0.3":"2017-07-03T16:57:44.537Z","2.0.4":"2017-07-03T16:58:26.448Z","2.0.5":"2017-07-03T17:05:36.056Z"},"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","users":{"psbolden":true}}