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.
57 58 59 60 |
# File 'lib/cairo/color.rb', line 57 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.
52 53 54 |
# File 'lib/cairo/color.rb', line 52 def alpha @alpha end |