Class: Gdk::Color
- Inherits:
-
Object
- Object
- Gdk::Color
- Defined in:
- lib/gdk3/color.rb
Instance Method Summary collapse
-
#initialize(red, green, blue) ⇒ Color
constructor
A new instance of Color.
- #initialize_raw ⇒ Object
Constructor Details
#initialize(red, green, blue) ⇒ Color
Returns a new instance of Color.
20 21 22 23 24 25 |
# File 'lib/gdk3/color.rb', line 20 def initialize(red, green, blue) initialize_raw self.red = red self.green = green self.blue = blue end |
Instance Method Details
#initialize_raw ⇒ Object
19 |
# File 'lib/gdk3/color.rb', line 19 alias_method :initialize_raw, :initialize |