Class: Castaway::Element::Matte
- Defined in:
- lib/castaway/element/matte.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
Attributes inherited from Base
#attributes, #position, #production, #scene, #size
Instance Method Summary collapse
- #_prepare_canvas(_t, canvas) ⇒ Object
-
#initialize(production, scene, color) ⇒ Matte
constructor
A new instance of Matte.
Methods inherited from Base
#_absolute, #_composite, #_convert, #_evaluate_animation_list, #_evaluate_attributes!, #_transform, #alive_at?, #animate, #at, #attribute, #duration, #effect, #enter, #exit, #gravity, #in, #out, #path, #render_at, #rotate, #scale, #t1, #t2, #tail
Constructor Details
#initialize(production, scene, color) ⇒ Matte
Returns a new instance of Matte.
9 10 11 12 |
# File 'lib/castaway/element/matte.rb', line 9 def initialize(production, scene, color) super(production, scene) @color = color end |
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
7 8 9 |
# File 'lib/castaway/element/matte.rb', line 7 def color @color end |
Instance Method Details
#_prepare_canvas(_t, canvas) ⇒ Object
14 15 16 |
# File 'lib/castaway/element/matte.rb', line 14 def _prepare_canvas(_t, canvas) canvas.xc @color end |