Class: Origami::Graphics::Color::RGB
- Inherits:
-
Object
- Object
- Origami::Graphics::Color::RGB
- Defined in:
- lib/origami/graphics/colors.rb
Instance Attribute Summary collapse
-
#b ⇒ Object
Returns the value of attribute b.
-
#g ⇒ Object
Returns the value of attribute g.
-
#r ⇒ Object
Returns the value of attribute r.
Instance Method Summary collapse
-
#initialize(r, g, b) ⇒ RGB
constructor
A new instance of RGB.
Constructor Details
#initialize(r, g, b) ⇒ RGB
Returns a new instance of RGB.
100 101 102 |
# File 'lib/origami/graphics/colors.rb', line 100 def initialize(r,g,b) @r,@g,@b = r,g,b end |
Instance Attribute Details
#b ⇒ Object
Returns the value of attribute b.
98 99 100 |
# File 'lib/origami/graphics/colors.rb', line 98 def b @b end |
#g ⇒ Object
Returns the value of attribute g.
98 99 100 |
# File 'lib/origami/graphics/colors.rb', line 98 def g @g end |
#r ⇒ Object
Returns the value of attribute r.
98 99 100 |
# File 'lib/origami/graphics/colors.rb', line 98 def r @r end |