Class: Origami::Graphics::Color::GrayScale

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(g) ⇒ GrayScale

Returns a new instance of GrayScale.



92
93
94
# File 'lib/origami/graphics/colors.rb', line 92

def initialize(g)
  @g = g
end

Instance Attribute Details

#gObject

Returns the value of attribute g.



90
91
92
# File 'lib/origami/graphics/colors.rb', line 90

def g
  @g
end