{"name":"random-color","version":"0.0.0","description":"Module to generate random RGB colors","main":"index.js","scripts":{"test":"fox"},"keywords":["random","color","rgb"],"devDependencies":{"fox":"*"},"repository":{"url":"git@github.com:azer/random-color.git","type":"git"},"author":"Azer Koçulu <azer@kodfabrik.com>","license":"BSD","_id":"random-color@0.0.0","_npmVersion":"0.0.0-fake","_nodeVersion":"0.0.0-fake","_shasum":"37cd9a1b5cd29c1cee3a640f0e64f819e0fa87ce","_npmUser":{"name":"npm","email":"support@npmjs.com"},"_from":".","dist":{"shasum":"37cd9a1b5cd29c1cee3a640f0e64f819e0fa87ce","tarball":"http://registry-npm.ywwl.com/random-color/download/random-color-0.0.0.tgz","integrity":"sha512-jD7Yp9aoOzKZFh5lZMAJNmO6wbTFPOYfZYdvBrBM+i+ioMObuIwZLbDQNGT+oOCGQ/LKJsoWguoxfwzBsZAo5w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrBAAF7t0f0b80PD8gjt/k8EhGh6O+JgZ4YN0Y8l9AWwIhAKOFq84azjZk+Otoe869ZBsjKgA0r805wDntsd2DMudd"}],"size":727,"noattachment":false,"key":"/random-color/-/random-color-0.0.0.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":1371446648768,"_cnpm_publish_time":1371446648768,"dist-tags":{"latest":"1.0.1"}}