This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit f991bbb41bff8d9726e3f3c3c2bd600cb1917312
tree 89629a6c645d77ae71288e6711a19b20b8f76d1b
parent 09662bc95a038cfab6c7a13b534774121d5183ab
tree 89629a6c645d77ae71288e6711a19b20b8f76d1b
parent 09662bc95a038cfab6c7a13b534774121d5183ab
colorist /
| name | age | message | |
|---|---|---|---|
| |
CHANGELOG.rdoc | Wed Sep 17 14:09:26 -0700 2008 | |
| |
MIT_LICENSE.rdoc | Sat Aug 16 13:17:53 -0700 2008 | |
| |
README.rdoc | Mon Aug 18 07:25:00 -0700 2008 | |
| |
colorist.gemspec | ||
| |
lib/ | Tue Nov 18 03:20:09 -0800 2008 |
README.rdoc
Colorist
Colorist is a library built to handle the conversion, comparison, and manipulation of colors in Ruby projects with an emphasis on W3C standards and CSS-style hex notation. See the Color class for additional details on the available methods.
Example
require 'colorist'
include Colorist
gray = Color.new(0x333333)
gray + gray # => #<Color #666666>
gray - "#333" # => #<Color #000000>
gray.invert # => #<Color #cccccc>
gray.brightness # => 0.2
gray.contrast_with("#f00")
Resources
- GitHub Source: github.com/mbleigh/colorist
- Lighthouse (for bugs): mbleigh.lighthouseapp.com/projects/15686-colorist
Copyright © 2008 Michael Bleigh and Intridea, Inc. Released under the MIT open source license.








