Color ===== A simple library for dealing with colors. Currently it features: Conversion: RGB Int <-> RGB Hex HSL <-> RGB RGB <-> CMYK RGB -> HSV Manipulation: Mixing colors Adjusting Hue, Saturation, or Lightness values of a color Future plans include #to_web_safe, a palette (fe: Color.new(:black)), color wheel traversing ( Color.new(:red).compliment == Color.new(:green) ), and possibly color scheme suggestions (analagous, etc). Usage ===== require 'color' => true red = Color.new('ff0000') => # yellow = Color.new('ffff00') => # orange = red.mix_with yellow, 0.5 => # orange.to_hex => "#ff7f00" orange.lightness += 0.2 => 0.7 orange.to_hex => "#ffb266" Warning ======= This is alpha-quality software. It works according to general poking and prodding, but at this point all of half a morning has been spent on it. The API is subject to change.