{"_id":"chartjs-color","_rev":"2985836","name":"chartjs-color","description":"Color conversion and manipulation with CSS string support","dist-tags":{"latest":"2.4.1"},"maintainers":[{"name":"chartjs-ci","email":""},{"name":"tannerlinsley","email":""}],"time":{"modified":"2023-08-01T02:53:46.000Z","created":"2016-02-12T06:04:40.659Z","2.4.1":"2019-10-25T20:51:22.080Z","2.3.0":"2019-03-07T10:39:03.897Z","2.2.0":"2017-09-09T20:37:24.858Z","2.1.0":"2017-02-19T20:54:55.687Z","2.0.0":"2016-05-14T12:34:38.959Z","1.0.22":"2016-04-29T22:50:04.256Z","1.0.21":"2016-02-12T06:13:59.237Z","1.0.2":"2016-02-12T06:08:02.862Z","0.8.2":"2016-02-12T06:04:40.659Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/chartjs/chartjs-color.git"},"versions":{"2.4.1":{"name":"chartjs-color","version":"2.4.1","description":"Color conversion and manipulation with CSS string support","keywords":["color","colour","css"],"authors":["Heather Arthur <fayearthur@gmail.com>","Maxime Thirouin","Josh Junon"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/chartjs/chartjs-color.git"},"xo":{"envs":["browser","node"],"rules":{"one-var":[2,{"initialized":"never"}],"linebreak-style":0,"no-cond-assign":0,"new-cap":0}},"scripts":{"pretest":"xo","test":"mocha"},"dependencies":{"color-convert":"^1.9.3","chartjs-color-string":"^0.6.0"},"devDependencies":{"browserify":"^16.2.3","gulp":"^4.0.0","gulp-rename":"^1.4.0","gulp-uglify":"^3.0.2","gulp-streamify":"^1.0.2","mocha":"^6.0.2","vinyl-source-stream":"^2.0.0","xo":"^0.12.1"},"gitHead":"df3bfdc1a365dc1460646a8ff4c1c0a05971a2bc","bugs":{"url":"https://github.com/chartjs/chartjs-color/issues"},"homepage":"https://github.com/chartjs/chartjs-color#readme","_id":"chartjs-color@2.4.1","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","dist":{"shasum":"6118bba202fe1ea79dd7f7c0f9da93467296c3b0","size":5918,"noattachment":false,"key":"/chartjs-color/-/chartjs-color-2.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/chartjs-color/download/chartjs-color-2.4.1.tgz"},"maintainers":[{"name":"chartjs-ci","email":""},{"name":"tannerlinsley","email":""}],"_npmUser":{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chartjs-color_2.4.1_1572036681884_0.9734643737042736"},"_hasShrinkwrap":false,"publish_time":1572036682080,"_cnpm_publish_time":1572036682080,"_cnpmcore_publish_time":"2021-12-18T17:11:13.888Z"},"2.3.0":{"name":"chartjs-color","version":"2.3.0","description":"Color conversion and manipulation with CSS string support","keywords":["color","colour","css"],"authors":["Heather Arthur <fayearthur@gmail.com>","Maxime Thirouin","Josh Junon"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/chartjs/chartjs-color.git"},"xo":{"envs":["browser","node"],"rules":{"one-var":[2,{"initialized":"never"}],"linebreak-style":0,"no-cond-assign":0,"new-cap":0}},"scripts":{"pretest":"xo","test":"mocha"},"dependencies":{"color-convert":"^0.5.3","chartjs-color-string":"^0.6.0"},"devDependencies":{"browserify":"^10.1.3","gulp":"^3.8.11","gulp-rename":"^1.2.2","gulp-uglify":"^1.2.0","gulp-streamify":"^1.0.2","mocha":"^2.2.5","vinyl-source-stream":"^1.1.0","xo":"^0.12.1"},"gitHead":"290007ffa3ab9882c76f7649669be6c869310fc8","bugs":{"url":"https://github.com/chartjs/chartjs-color/issues"},"homepage":"https://github.com/chartjs/chartjs-color#readme","_id":"chartjs-color@2.3.0","_shasum":"0e7e1e8dba37eae8415fd3db38bf572007dd958f","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.9.1","_npmUser":{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"},"dist":{"shasum":"0e7e1e8dba37eae8415fd3db38bf572007dd958f","size":5908,"noattachment":false,"key":"/chartjs-color/-/chartjs-color-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chartjs-color/download/chartjs-color-2.3.0.tgz"},"maintainers":[{"name":"chartjs-ci","email":""},{"name":"tannerlinsley","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chartjs-color_2.3.0_1551955143741_0.4493802307786807"},"_hasShrinkwrap":false,"publish_time":1551955143897,"_cnpm_publish_time":1551955143897,"_cnpmcore_publish_time":"2021-12-18T17:11:14.117Z"},"2.2.0":{"name":"chartjs-color","version":"2.2.0","description":"Color conversion and manipulation with CSS string support","keywords":["color","colour","css"],"authors":["Heather Arthur <fayearthur@gmail.com>","Maxime Thirouin","Josh Junon"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/chartjs/chartjs-color.git"},"xo":{"envs":["browser","node"],"rules":{"one-var":[2,{"initialized":"never"}],"linebreak-style":0,"no-cond-assign":0,"new-cap":0}},"files":["CHANGELOG.md","LICENSE","index.js"],"scripts":{"pretest":"xo","test":"mocha"},"dependencies":{"color-convert":"^0.5.3","chartjs-color-string":"^0.5.0"},"devDependencies":{"browserify":"^10.1.3","gulp":"^3.8.11","gulp-rename":"^1.2.2","gulp-uglify":"^1.2.0","gulp-streamify":"^1.0.2","mocha":"^2.2.5","vinyl-source-stream":"^1.1.0","xo":"^0.12.1"},"gitHead":"afb9254edef475c8cc6091da3eea2d5e1691068d","bugs":{"url":"https://github.com/chartjs/chartjs-color/issues"},"homepage":"https://github.com/chartjs/chartjs-color#readme","_id":"chartjs-color@2.2.0","_shasum":"84a2fb755787ed85c39dd6dd8c7b1d88429baeae","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.8.4","_npmUser":{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"},"dist":{"shasum":"84a2fb755787ed85c39dd6dd8c7b1d88429baeae","size":5908,"noattachment":false,"key":"/chartjs-color/-/chartjs-color-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chartjs-color/download/chartjs-color-2.2.0.tgz"},"maintainers":[{"name":"chartjs-ci","email":""},{"name":"tannerlinsley","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/chartjs-color-2.2.0.tgz_1504989443911_0.7779163443483412"},"directories":{},"publish_time":1504989444858,"_hasShrinkwrap":false,"_cnpm_publish_time":1504989444858,"_cnpmcore_publish_time":"2021-12-18T17:11:14.358Z"},"2.1.0":{"name":"chartjs-color","version":"2.1.0","description":"Color conversion and manipulation with CSS string support","keywords":["color","colour","css"],"authors":["Heather Arthur <fayearthur@gmail.com>","Maxime Thirouin","Josh Junon"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/chartjs/chartjs-color.git"},"xo":{"envs":["browser","node"],"rules":{"one-var":[2,{"initialized":"never"}],"linebreak-style":0,"no-cond-assign":0,"new-cap":0}},"files":["CHANGELOG.md","LICENSE","index.js"],"scripts":{"pretest":"xo","test":"mocha"},"dependencies":{"color-convert":"^0.5.3","chartjs-color-string":"^0.4.0"},"devDependencies":{"browserify":"^10.1.3","gulp":"^3.8.11","gulp-rename":"^1.2.2","gulp-uglify":"^1.2.0","gulp-streamify":"^1.0.2","mocha":"^2.2.5","vinyl-source-stream":"^1.1.0","xo":"^0.12.1"},"gitHead":"2105b1df21cdc8176e50312f96c22bff4cb1edf3","bugs":{"url":"https://github.com/chartjs/chartjs-color/issues"},"homepage":"https://github.com/chartjs/chartjs-color#readme","_id":"chartjs-color@2.1.0","_shasum":"9c39ac830ccd98996ae80c9f11086ff12c98a756","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"chartjs-ci","email":"chartjs-ci@abysscorp.org"},"dist":{"shasum":"9c39ac830ccd98996ae80c9f11086ff12c98a756","size":5911,"noattachment":false,"key":"/chartjs-color/-/chartjs-color-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chartjs-color/download/chartjs-color-2.1.0.tgz"},"maintainers":[{"name":"chartjs-ci","email":""},{"name":"tannerlinsley","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/chartjs-color-2.1.0.tgz_1487537695108_0.7681387134362012"},"directories":{},"publish_time":1487537695687,"_hasShrinkwrap":false,"_cnpm_publish_time":1487537695687,"_cnpmcore_publish_time":"2021-12-18T17:11:14.604Z"},"2.0.0":{"name":"chartjs-color","version":"2.0.0","description":"Color conversion and manipulation with CSS string support","keywords":["color","colour","css"],"authors":["Heather Arthur <fayearthur@gmail.com>","Maxime Thirouin","Josh Junon"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/chartjs/chartjs-color.git"},"xo":{"envs":["browser","node"],"rules":{"one-var":[2,{"initialized":"never"}],"linebreak-style":0,"no-cond-assign":0,"new-cap":0}},"files":["CHANGELOG.md","LICENSE","index.js"],"scripts":{"build":"gulp build","pretest":"xo","test":"mocha"},"dependencies":{"color-convert":"^0.5.3","chartjs-color-string":"^0.4.0"},"devDependencies":{"browserify":"^10.1.3","gulp":"^3.8.11","gulp-rename":"^1.2.2","gulp-uglify":"^1.2.0","gulp-streamify":"^1.0.2","mocha":"^2.2.5","vinyl-source-stream":"^1.1.0","xo":"^0.12.1"},"gitHead":"0013b6fd8529ac366facb1b56a5189c7f5cf9ba9","bugs":{"url":"https://github.com/chartjs/chartjs-color/issues"},"homepage":"https://github.com/chartjs/chartjs-color#readme","_id":"chartjs-color@2.0.0","_shasum":"7f60c7256589b24914814ece757659117381e35b","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"etimberg","email":"evert.timberg+npm@gmail.com"},"dist":{"shasum":"7f60c7256589b24914814ece757659117381e35b","size":5970,"noattachment":false,"key":"/chartjs-color/-/chartjs-color-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/chartjs-color/download/chartjs-color-2.0.0.tgz"},"maintainers":[{"name":"chartjs-ci","email":""},{"name":"tannerlinsley","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/chartjs-color-2.0.0.tgz_1463229276629_0.5099742498714477"},"directories":{},"publish_time":1463229278959,"_hasShrinkwrap":false,"_cnpm_publish_time":1463229278959,"_cnpmcore_publish_time":"2021-12-18T17:11:14.873Z"},"1.0.22":{"name":"chartjs-color","version":"1.0.22","description":"Color conversion and manipulation with CSS string support","main":"src/color.js","keywords":["color","colour","css"],"authors":["Heather Arthur <fayearthur@gmail.com>","Maxime Thirouin"],"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/harthur/color.git"},"files":["CHANGELOG.md","LICENSE","dist/","src/"],"scripts":{"test":"node test"},"dependencies":{"color-convert":"^0.5.0","chartjs-color-string":"^0.4.0"},"devDependencies":{"browserify":"^10.1.3","gulp":"^3.8.11","gulp-rename":"^1.2.2","gulp-uglify":"^1.2.0","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0"},"gitHead":"602fd44df82014248780591a2ba5c499fd5b9649","bugs":{"url":"https://github.com/harthur/color/issues"},"homepage":"https://github.com/harthur/color#readme","_id":"chartjs-color@1.0.22","_shasum":"a99b0f74d6078f0ffca41788433e14d8144c7a2c","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.6.0","_npmUser":{"name":"etimberg","email":"evert.timberg+npm@gmail.com"},"dist":{"shasum":"a99b0f74d6078f0ffca41788433e14d8144c7a2c","size":39462,"noattachment":false,"key":"/chartjs-color/-/chartjs-color-1.0.22.tgz","tarball":"http://registry.cnpm.dingdandao.com/chartjs-color/download/chartjs-color-1.0.22.tgz"},"maintainers":[{"name":"chartjs-ci","email":""},{"name":"tannerlinsley","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/chartjs-color-1.0.22.tgz_1461970203336_0.6161247387062758"},"directories":{},"publish_time":1461970204256,"_hasShrinkwrap":false,"_cnpm_publish_time":1461970204256,"_cnpmcore_publish_time":"2021-12-18T17:11:15.204Z"},"1.0.21":{"name":"chartjs-color","version":"1.0.21","description":"Color conversion and manipulation with CSS string support","main":"src/color.js","keywords":["color","colour","css"],"authors":["Heather Arthur <fayearthur@gmail.com>","Maxime Thirouin"],"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/harthur/color.git"},"files":["CHANGELOG.md","LICENSE","dist/","src/"],"scripts":{"test":"node test"},"dependencies":{"color-convert":"^0.5.0","color-string":"git://github.com/chartjs/color-string.git"},"devDependencies":{"browserify":"^10.1.3","gulp":"^3.8.11","gulp-rename":"^1.2.2","gulp-uglify":"^1.2.0","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0"},"gitHead":"14b021c09756ebb6da0dbaded1fe1a50a3d6caf8","bugs":{"url":"https://github.com/harthur/color/issues"},"homepage":"https://github.com/harthur/color#readme","_id":"chartjs-color@1.0.21","_shasum":"0f3a816ae02666776dbfc4c3cf537fd29755f5b5","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"tannerlinsley","email":"tannerlinsley@gmail.com"},"maintainers":[{"name":"chartjs-ci","email":""},{"name":"tannerlinsley","email":""}],"dist":{"shasum":"0f3a816ae02666776dbfc4c3cf537fd29755f5b5","size":39505,"noattachment":false,"key":"/chartjs-color/-/chartjs-color-1.0.21.tgz","tarball":"http://registry.cnpm.dingdandao.com/chartjs-color/download/chartjs-color-1.0.21.tgz"},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/chartjs-color-1.0.21.tgz_1455257635567_0.32888393360190094"},"directories":{},"publish_time":1455257639237,"_hasShrinkwrap":false,"_cnpm_publish_time":1455257639237,"_cnpmcore_publish_time":"2021-12-18T17:11:15.403Z"},"1.0.2":{"name":"chartjs-color","version":"1.0.2","description":"Color conversion and manipulation with CSS string support","main":"src/color.js","keywords":["color","colour","css"],"authors":["Heather Arthur <fayearthur@gmail.com>","Maxime Thirouin"],"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/harthur/color.git"},"files":["CHANGELOG.md","LICENSE","dist/"],"scripts":{"test":"node test"},"dependencies":{"color-convert":"^0.5.0","color-string":"git://github.com/chartjs/color-string.git"},"devDependencies":{"browserify":"^10.1.3","gulp":"^3.8.11","gulp-rename":"^1.2.2","gulp-uglify":"^1.2.0","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0"},"gitHead":"6cb1599a608148a245b9227094b574c540fecadb","bugs":{"url":"https://github.com/harthur/color/issues"},"homepage":"https://github.com/harthur/color#readme","_id":"chartjs-color@1.0.2","_shasum":"e4273e93cdfb0a0897dfacefd99dd490a39dc6f3","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"tannerlinsley","email":"tannerlinsley@gmail.com"},"maintainers":[{"name":"chartjs-ci","email":""},{"name":"tannerlinsley","email":""}],"dist":{"shasum":"e4273e93cdfb0a0897dfacefd99dd490a39dc6f3","size":37052,"noattachment":false,"key":"/chartjs-color/-/chartjs-color-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/chartjs-color/download/chartjs-color-1.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/chartjs-color-1.0.2.tgz_1455257279279_0.2968788032885641"},"directories":{},"publish_time":1455257282862,"_hasShrinkwrap":false,"_cnpm_publish_time":1455257282862,"_cnpmcore_publish_time":"2021-12-18T17:11:15.624Z"},"0.8.2":{"name":"chartjs-color","version":"0.8.2","description":"Color conversion and manipulation with CSS string support","main":"src/color.js","keywords":["color","colour","css"],"authors":["Heather Arthur <fayearthur@gmail.com>","Maxime Thirouin"],"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/harthur/color.git"},"files":["CHANGELOG.md","LICENSE","dist/"],"scripts":{"test":"node test"},"dependencies":{"color-convert":"^0.5.0","color-string":"git://github.com/chartjs/color-string.git"},"devDependencies":{"browserify":"^10.1.3","gulp":"^3.8.11","gulp-rename":"^1.2.2","gulp-uglify":"^1.2.0","vinyl-buffer":"^1.0.0","vinyl-source-stream":"^1.1.0"},"gitHead":"0d4b67913aff45e6375942752168498e976379d2","bugs":{"url":"https://github.com/harthur/color/issues"},"homepage":"https://github.com/harthur/color#readme","_id":"chartjs-color@0.8.2","_shasum":"a7f044bfd2937d5e84dcf60058c7db45ec4d0237","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.6","_npmUser":{"name":"tannerlinsley","email":"tannerlinsley@gmail.com"},"maintainers":[{"name":"chartjs-ci","email":""},{"name":"tannerlinsley","email":""}],"dist":{"shasum":"a7f044bfd2937d5e84dcf60058c7db45ec4d0237","size":37052,"noattachment":false,"key":"/chartjs-color/-/chartjs-color-0.8.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/chartjs-color/download/chartjs-color-0.8.2.tgz"},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/chartjs-color-0.8.2.tgz_1455257077212_0.8888901260215789"},"directories":{},"publish_time":1455257080659,"_hasShrinkwrap":false,"_cnpm_publish_time":1455257080659,"_cnpmcore_publish_time":"2021-12-18T17:11:15.850Z"}},"readme":"# chartjs-color\n\n[![npm](https://img.shields.io/npm/v/chartjs-color.svg?style=flat-square)](https://npmjs.com/package/chartjs-color) [![Travis](https://img.shields.io/travis/chartjs/chartjs-color.svg?style=flat-square)](https://travis-ci.org/chartjs/chartjs-color)\n\n> JavaScript library for color conversion and manipulation with support for CSS color strings.\n\n```js\nvar color = Color(\"#7743CE\");\n\ncolor.alpha(0.5).lighten(0.5);\n\nconsole.log(color.hslString());  // \"hsla(262, 59%, 81%, 0.5)\"\n```\n\n## Install\n\n```console\n$ npm install color\n```\n\n## Usage\n\n```js\nvar Color = require(\"color\")\n```\n\n### Setters\n\n```js\nvar color = Color(\"rgb(255, 255, 255)\")\nvar color = Color({r: 255, g: 255, b: 255})\nvar color = Color().rgb(255, 255, 255)\nvar color = Color().rgb([255, 255, 255])\n```\nPass any valid CSS color string into `Color()` or a hash of values. Also load in color values with `rgb()`, `hsl()`, `hsv()`, `hwb()`, and `cmyk()`.\n\n```js\ncolor.red(120)\n```\nSet the values for individual channels with `alpha`, `red`, `green`, `blue`, `hue`, `saturation` (hsl), `saturationv` (hsv), `lightness`, `whiteness`, `blackness`, `cyan`, `magenta`, `yellow`, `black`\n\n### Getters\n\n\n```js\ncolor.rgb()       // {r: 255, g: 255, b: 255}\n```\nGet a hash of the rgb values with `rgb()`, similarly for `hsl()`, `hsv()`, and `cmyk()`\n\n```js\ncolor.rgbArray()  // [255, 255, 255]\n```\nGet an array of the values with `rgbArray()`, `hslArray()`, `hsvArray()`, and `cmykArray()`.\n\n```js\ncolor.red()       // 255\n```\nGet the value for an individual channel.\n\n### CSS Strings\n\n```js\ncolor.hslString()  // \"hsl(320, 50%, 100%)\"\n```\n\nDifferent CSS String formats for the color are on `hexString`, `rgbString`, `percentString`, `hslString`, `hwbString`, and `keyword` (undefined if it's not a keyword color). `\"rgba\"` and `\"hsla\"` are used if the current alpha value of the color isn't `1`.\n\n### Luminosity\n\n```js\ncolor.luminosity();  // 0.412\n```\nThe [WCAG luminosity](http://www.w3.org/TR/WCAG20/#relativeluminancedef) of the color. 0 is black, 1 is white.\n\n```js\ncolor.contrast(Color(\"blue\"))  // 12\n```\nThe [WCAG contrast ratio](http://www.w3.org/TR/WCAG20/#contrast-ratiodef) to another color, from 1 (same color) to 21 (contrast b/w white and black).\n\n```js\ncolor.light();  // true\ncolor.dark();   // false\n```\nGet whether the color is \"light\" or \"dark\", useful for deciding text color.\n\n### Manipulation\n\n```js\ncolor.negate()         // rgb(0, 100, 255) -> rgb(255, 155, 0)\n\ncolor.lighten(0.5)     // hsl(100, 50%, 50%) -> hsl(100, 50%, 75%)\ncolor.darken(0.5)      // hsl(100, 50%, 50%) -> hsl(100, 50%, 25%)\n\ncolor.saturate(0.5)    // hsl(100, 50%, 50%) -> hsl(100, 75%, 50%)\ncolor.desaturate(0.5)  // hsl(100, 50%, 50%) -> hsl(100, 25%, 50%)\ncolor.greyscale()      // #5CBF54 -> #969696\n\ncolor.whiten(0.5)      // hwb(100, 50%, 50%) -> hwb(100, 75%, 50%)\ncolor.blacken(0.5)     // hwb(100, 50%, 50%) -> hwb(100, 50%, 75%)\n\ncolor.clearer(0.5)     // rgba(10, 10, 10, 0.8) -> rgba(10, 10, 10, 0.4)\ncolor.opaquer(0.5)     // rgba(10, 10, 10, 0.8) -> rgba(10, 10, 10, 1.0)\n\ncolor.rotate(180)      // hsl(60, 20%, 20%) -> hsl(240, 20%, 20%)\ncolor.rotate(-90)      // hsl(60, 20%, 20%) -> hsl(330, 20%, 20%)\n\ncolor.mix(Color(\"yellow\"))        // cyan -> rgb(128, 255, 128)\ncolor.mix(Color(\"yellow\"), 0.3)   // cyan -> rgb(77, 255, 179)\n\n// chaining\ncolor.green(100).greyscale().lighten(0.6)\n```\n\n### Clone\n\nYou can can create a copy of an existing color object using `clone()`:\n\n```js\ncolor.clone() // -> New color object\n```\n\nAnd more to come...\n\n## Propers\n\nThe API was inspired by [color-js](https://github.com/brehaut/color-js). Manipulation functions by CSS tools like Sass, LESS, and Stylus.\n","_attachments":{},"homepage":"https://github.com/chartjs/chartjs-color#readme","bugs":{"url":"https://github.com/chartjs/chartjs-color/issues"},"license":"MIT"}