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.



100
101
102
# File 'lib/origami/graphics/colors.rb', line 100

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.



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

def c
  @c
end

#kObject

Returns the value of attribute k.



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

def k
  @k
end

#mObject

Returns the value of attribute m.



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

def m
  @m
end

#yObject

Returns the value of attribute y.



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

def y
  @y
end