Class: Origami::Graphics::Color::RGB

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(r, g, b) ⇒ RGB

Returns a new instance of RGB.



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

def initialize(r, g, b)
  @r, @g, @b = r, g, b
end

Instance Attribute Details

#bObject

Returns the value of attribute b.



87
88
89
# File 'lib/origami/graphics/colors.rb', line 87

def b
  @b
end

#gObject

Returns the value of attribute g.



87
88
89
# File 'lib/origami/graphics/colors.rb', line 87

def g
  @g
end

#rObject

Returns the value of attribute r.



87
88
89
# File 'lib/origami/graphics/colors.rb', line 87

def r
  @r
end