github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

mbleigh / colorist

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 28
    • 3
  • Source
  • Commits
  • Network (3)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A Ruby library built to handle the easy conversion and manipulation of colors with a special emphasis on W3C standards and CSS-style hex color notation. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Bumping gem version. 
mbleigh (author)
Wed May 20 07:05:00 -0700 2009
commit  88a14d1d1a1fd1c05155840e37485579068f6130
tree    f924fc9a4486a2eb7a777b05b8cc8d3e9e5bda63
parent  f991bbb41bff8d9726e3f3c3c2bd600cb1917312
colorist /
name age
history
message
file CHANGELOG.rdoc Wed Sep 17 14:09:26 -0700 2008 Bump version, add CHANGELOG. [mbleigh]
file MIT_LICENSE.rdoc Sat Aug 16 13:17:53 -0700 2008 Initial commit. [mbleigh]
file README.rdoc Mon Aug 18 07:25:00 -0700 2008 Doc and gemspec changes. [mbleigh]
file colorist.gemspec Wed May 20 07:05:00 -0700 2009 Bumping gem version. [mbleigh]
directory lib/ Loading commit data...
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.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server