A lib for colors.
Add this line to your application's Gemfile:
gem 'color_lib'
And then execute:
$ bundle
Or install it yourself as:
$ gem install color_lib## Contributing
And then push it up to Rubygems.org $ bundle exec rake release
Usage
ColorLib::RGB.new(r, g, b).html
ColorLib::RGB.new(60, 60, 60).html
=> "#3C3C3C"
ColorLib::CMYK.new(c, m, y, k).html
ColorLib::CMYK.new(68, 62, 61, 50).html
=> "#3C3C3C"
ColorLib::Pantone.from_value(pantone).html
ColorLib::Pantone.from_value('103').html
=> "#CAAD00"
ColorLib::Pantone.match(pantone)
ColorLib::Pantone.match('ABCDEF103')
=> false
- Fork it ( https://github.com/brandfolder/color_lib/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request