Module: ColorSpaceConverter

Defined in:
lib/color_space_converter.rb,
lib/color_space_converter/const.rb,
lib/color_space_converter/compute.rb,
lib/color_space_converter/version.rb,
lib/color_space_converter/color_space.rb

Defined Under Namespace

Modules: Compute, Const Classes: ColorSpace, Error

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.new(space = ARGV[0], e1 = ARGV[1], e2 = ARGV[2], e3 = ARGV[3]) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/color_space_converter.rb', line 8

def self.new(space = ARGV[0], e1 = ARGV[1], e2 = ARGV[2], e3 = ARGV[3])
  space ||= 'rgb'
  e1 ||= 0
  e2 ||= 0
  e3 ||= 0
  return ColorSpaceConverter::ColorSpace.new(space, e1, e2, e3)
end