Class: Cairo::Color::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cairo/color.rb

Direct Known Subclasses

CMYK, HSV, RGB

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#alphaObject Also known as: a

Returns the value of attribute alpha.



60
61
62
# File 'lib/cairo/color.rb', line 60

def alpha
  @alpha
end