Class: Origami::Graphics::Color::CMYK

Inherits:
Object
  • Object
show all
Defined in:
lib/origami/graphics/colors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(c, m, y, k) ⇒ CMYK

Returns a new instance of CMYK.



97
98
99
# File 'lib/origami/graphics/colors.rb', line 97

def initialize(c, m, y, k)
  @c, @m, @y, @k = c, m, y, k
end

Instance Attribute Details

#cObject

Returns the value of attribute c.



95
96
97
# File 'lib/origami/graphics/colors.rb', line 95

def c
  @c
end

#kObject

Returns the value of attribute k.



95
96
97
# File 'lib/origami/graphics/colors.rb', line 95

def k
  @k
end

#mObject

Returns the value of attribute m.



95
96
97
# File 'lib/origami/graphics/colors.rb', line 95

def m
  @m
end

#yObject

Returns the value of attribute y.



95
96
97
# File 'lib/origami/graphics/colors.rb', line 95

def y
  @y
end