Colorscheme is a gem for creating a colorscheme from a known source - either a website, an image or a (set) of color(s). The gem can be used to generate a set of colors to be used in a websites stylesheet.
It will give your options of getting the following types of colorschemes:
- Monochromatic
- Complementary
- Analogous
- Triadic
- Split-Complementary
- Tetradic
- Square
You can only get colors as Color objects (from the Color gem) and you can only get colorschemes from a known color (again, a Color object from the Color gem).
The only implemented schemes are: Complementary, Analogous, Triadic, Split-Complementary and Square.
Add this line to your application's Gemfile:
gem 'colorscheme'
And then execute:
$ bundle
Or install it yourself as:
$ gem install colorscheme
scheme = Colorscheme::Triadic.new(Color.RGB.new(255,0,0))
scheme.colors # is an array of three colors
- Fork it
- 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 new Pull Request