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.



108
109
110
# File 'lib/origami/graphics/colors.rb', line 108

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.



106
107
108
# File 'lib/origami/graphics/colors.rb', line 106

def c
  @c
end

#kObject

Returns the value of attribute k.



106
107
108
# File 'lib/origami/graphics/colors.rb', line 106

def k
  @k
end

#mObject

Returns the value of attribute m.



106
107
108
# File 'lib/origami/graphics/colors.rb', line 106

def m
  @m
end

#yObject

Returns the value of attribute y.



106
107
108
# File 'lib/origami/graphics/colors.rb', line 106

def y
  @y
end