{"name":"random-color","version":"0.0.1","description":"Module to generate random RGB colors","main":"index.js","scripts":{"test":"fox"},"keywords":["random","color","rgb"],"devDependencies":{"prova":"*"},"repository":{"url":"git@github.com:azer/random-color.git","type":"git"},"author":"Azer Koçulu <azer@kodfabrik.com>","license":"BSD","dependencies":{"rnd":"0.0.0"},"_id":"random-color@0.0.1","_npmVersion":"0.0.0-fake","_nodeVersion":"0.0.0-fake","_shasum":"a5247eece4c720992b2c9dea5558d09ef3d4a054","_npmUser":{"name":"npm","email":"support@npmjs.com"},"_from":".","dist":{"shasum":"a5247eece4c720992b2c9dea5558d09ef3d4a054","tarball":"http://registry-npm.ywwl.com/random-color/download/random-color-0.0.1.tgz","integrity":"sha512-pd+fHaR6IaR01PlwQiA+w0z7zEQzu9sJx6mbvppvda6NEJtz7iYofWP2LZWhZ5VHN9fUjP7KEMvFU0QpBuOj6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEosWQWEcgc/A+sgixX3kD0pd1iUSqM8MtE4/YLZxtNpAiAcjKHFUn5YU2DCS0A6TfYArcON/R6W1+6pVFJmBk0rTQ=="}],"size":730,"noattachment":false,"key":"/random-color/-/random-color-0.0.1.tgz"},"maintainers":[{"name":"nj48","email":"spam@njohnson.me"}],"directories":{},"readme":"# random-color\n\n> Generate random colors based on the golden ratio, which are more visually pleasing.\n  \n[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/mock-end/random-color/blob/master/LICENSE)\n\n[![build:?](https://img.shields.io/travis/mock-end/random-color/master.svg?style=flat-square)](https://travis-ci.org/mock-end/random-color)\n[![coverage:?](https://img.shields.io/coveralls/mock-end/random-color/master.svg?style=flat-square)](https://coveralls.io/github/mock-end/random-color)\n  \n\nThis module is deeply inspired by Martin Ankerl's [blog post](http://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/). \n\nThe generated colors are more visually pleasing together than a simple random color generator because they are computed by moving around the color wheel in increments of the golden ratio. By default, the generated colors can used as a background for legible black text, but the color generator can be customized for other uses.\n\n\n## Install\n\n```\n$ npm install --save random-color\n```\n\n## Usage\n\n```js\nvar randomColor = require('random-color');\n\n// API\n// - randomColor([saturation, value]);\n```\n\nBy default, generate a color with `saturation = 0.5` and `value = 0.95`. \n\nReturns [color](https://github.com/harthur/color) object so you can convert the color to any color-formats easily.\n\n```js\nvar color = randomColor();\n\n// ref: https://github.com/harthur/color\ncolor.hexString(); // => '#d67118'\ncolor.rgbString(); // => 'rgb(110,52,164)'\n```\n![saturation=0.5, value=0.95](img/1.png?raw=true \"saturation=0.5, value=0.95\")\n\n\nOptionally specify `saturation` and `value`:\n\n```js\nvar color = randomColor(0.99, 0.99);\n```\n![saturation=0.99, value=0.99](img/2.png?raw=true \"saturation=0.99, value=0.99\")\n\n```js\nvar color = randomColor(0.3, 0.99);\n```\n![saturation=0.3, value=0.99](img/1.png?raw=true \"saturation=0.3, value=0.99\")\n\n## Contributing\n\nPull requests and stars are highly welcome.\n\nFor bugs and feature requests, please [create an issue](https://github.com/mock-end/random-color/issues/new).\n","publish_time":1408086449624,"_cnpm_publish_time":1408086449624,"dist-tags":{"latest":"1.0.1"}}