Sha256: 5a5def246edcb57180e9354cb55c90970f18eb5f35ee9924218cc9101cc2a0f0
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
# Ruby Color Generator [![Dependency Status](https://gemnasium.com/opennorth/color-generator.png)](https://gemnasium.com/opennorth/color-generator) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/opennorth/color-generator) This gem randomly generates very distinct colors with consistent lightness and saturation. If you are using these colors as background colors, consistent lightness lets you use the same foreground color for each. Consistent saturation lets you avoid mixing pastels with vibrant colors, etc. ## Usage require 'color-generator' generator = ColorGenerator.new 0.3, 1.0 color1 = generator.create # => "f7b3ff" color2 = generator.create # => "b3ffe0" ## Acknowledgements Thanks to Martin Ankerl for his [blog post](http://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/) which inspired this gem. ## Bugs? Questions? This gem's main repository is on GitHub: [http://github.com/opennorth/color-generator](http://github.com/opennorth/color-generator), where your contributions, forks, bug reports, feature requests, and feedback are greatly welcomed. Copyright (c) 2012 Open North Inc., released under the MIT license
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
color-generator-0.0.1 | README.md |