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.



84
85
86
# File 'lib/origami/graphics/colors.rb', line 84

def initialize(g)
    @g = g
end

Instance Attribute Details

#gObject

Returns the value of attribute g.



82
83
84
# File 'lib/origami/graphics/colors.rb', line 82

def g
  @g
end