Class: Rubygoo::GooColor
- Inherits:
-
Object
- Object
- Rubygoo::GooColor
- Defined in:
- lib/rubygoo/goo_color.rb
Overview
is an rbga color
Instance Attribute Summary collapse
-
#a ⇒ Object
Returns the value of attribute a.
-
#b ⇒ Object
Returns the value of attribute b.
-
#g ⇒ Object
Returns the value of attribute g.
-
#r ⇒ Object
Returns the value of attribute r.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(r, g, b, a) ⇒ GooColor
constructor
A new instance of GooColor.
Constructor Details
#initialize(r, g, b, a) ⇒ GooColor
Returns a new instance of GooColor.
8 9 10 |
# File 'lib/rubygoo/goo_color.rb', line 8 def initialize(r,g,b,a) @r,@g,@b,@a = r,g,b,a end |
Instance Attribute Details
#a ⇒ Object
Returns the value of attribute a.
7 8 9 |
# File 'lib/rubygoo/goo_color.rb', line 7 def a @a end |
#b ⇒ Object
Returns the value of attribute b.
7 8 9 |
# File 'lib/rubygoo/goo_color.rb', line 7 def b @b end |
#g ⇒ Object
Returns the value of attribute g.
7 8 9 |
# File 'lib/rubygoo/goo_color.rb', line 7 def g @g end |
#r ⇒ Object
Returns the value of attribute r.
7 8 9 |
# File 'lib/rubygoo/goo_color.rb', line 7 def r @r end |