Class: Cairo::Color::Base
- Inherits:
-
Object
- Object
- Cairo::Color::Base
- Defined in:
- lib/cairo/color.rb
Instance Attribute Summary collapse
-
#alpha ⇒ Object
(also: #a)
Returns the value of attribute alpha.
Instance Method Summary collapse
-
#initialize(a) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(a) ⇒ Base
Returns a new instance of Base.
65 66 67 68 |
# File 'lib/cairo/color.rb', line 65 def initialize(a) assert_in_range(a, "alpha channel") @alpha = a end |
Instance Attribute Details
#alpha ⇒ Object Also known as: a
Returns the value of attribute alpha.
60 61 62 |
# File 'lib/cairo/color.rb', line 60 def alpha @alpha end |