Project

color_lib

0.0
No commit activity in last 3 years
No release in over 3 years
A lib for working with colors in ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.7
~> 5.5
~> 10.0
 Project Readme

ColorLib Gem Version

A lib for colors.

Installation

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
  1. Fork it ( https://github.com/brandfolder/color_lib/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request