module Colors

Constants

VERSION
WHITE_POINT_D65

ITU-R BT.709 D65 white point See en.wikipedia.org/wiki/Rec._709 for details

Public Class Methods

[](name) click to toggle source
# File lib/colors.rb, line 30
def self.[](name)
  NamedColors[name]
end
desaturate(c, factor) click to toggle source
# File lib/colors.rb, line 22
def self.desaturate(c, factor)
  case c
  when String
    c = NamedColors[c]
  end
  c.desaturate(factor)
end