GitXplorerGitXplorer
c

colorscheme

public
1 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
2f5fac689b0ba8a89af8767f5c5a111ff7224b4d

bumped version

cclauswitt committed 12 years ago
Unverified
d8a77a6fbdd39ebab9faa0305101b38fda8c2cda

updated example in readme to match actual implementation

cclauswitt committed 12 years ago
Unverified
9623eeede69105951df734ed2e14dee8ead37d1b

split implementation in classes

cclauswitt committed 12 years ago
Unverified
426dc559ce72273a235159168c6cdcb9bf72fd8b

implemented a method to get the best text color for a given background color

cclauswitt committed 12 years ago
Unverified
5e7c7aef4098e7b966f312574eb0904c791bbf84

fixed gemspec

cclauswitt committed 12 years ago
Unverified
3eaa16fbe5e0501a45b19df8b89877e104a8a598

initial (real) implementation of something useful

cclauswitt committed 12 years ago

README

The README file for this repository.

Colorscheme

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

Currently working version:

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.

Installation

Add this line to your application's Gemfile:

gem 'colorscheme'

And then execute:

$ bundle

Or install it yourself as:

$ gem install colorscheme

Usage

scheme = Colorscheme::Triadic.new(Color.RGB.new(255,0,0))
scheme.colors # is an array of three colors

Contributing

  1. Fork it
  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 new Pull Request