Class: Origami::Graphics::Color::CMYK
- Inherits:
-
Object
- Object
- Origami::Graphics::Color::CMYK
- Defined in:
- lib/origami/graphics/colors.rb
Instance Attribute Summary collapse
-
#c ⇒ Object
Returns the value of attribute c.
-
#k ⇒ Object
Returns the value of attribute k.
-
#m ⇒ Object
Returns the value of attribute m.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(c, m, y, k) ⇒ CMYK
constructor
A new instance of CMYK.
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
#c ⇒ Object
Returns the value of attribute c.
98 99 100 |
# File 'lib/origami/graphics/colors.rb', line 98 def c @c end |
#k ⇒ Object
Returns the value of attribute k.
98 99 100 |
# File 'lib/origami/graphics/colors.rb', line 98 def k @k end |
#m ⇒ Object
Returns the value of attribute m.
98 99 100 |
# File 'lib/origami/graphics/colors.rb', line 98 def m @m end |
#y ⇒ Object
Returns the value of attribute y.
98 99 100 |
# File 'lib/origami/graphics/colors.rb', line 98 def y @y end |