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.



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

def initialize(g)
  @g = g
end

Instance Attribute Details

#gObject

Returns the value of attribute g.



79
80
81
# File 'lib/origami/graphics/colors.rb', line 79

def g
  @g
end