Class: MovieMaker::Action::Color
- Inherits:
-
SimpleAction
- Object
- SimpleAction
- MovieMaker::Action::Color
- Defined in:
- lib/movie_maker/action.rb
Overview
Sets Color
Instance Attribute Summary
Attributes inherited from SimpleAction
Instance Method Summary collapse
- #finalize ⇒ Object
-
#initialize(options = {}, color = 0xFFFFFFFF) ⇒ Color
constructor
A new instance of Color.
Methods inherited from SimpleAction
Constructor Details
#initialize(options = {}, color = 0xFFFFFFFF) ⇒ Color
Returns a new instance of Color.
344 345 346 347 348 349 |
# File 'lib/movie_maker/action.rb', line 344 def initialize( = {}, color = 0xFFFFFFFF) super() @sprite = [:object] @color = color @color = ::Gosu::Color.new(color) if color.is_a? Fixnum end |
Instance Method Details
#finalize ⇒ Object
350 351 352 353 |
# File 'lib/movie_maker/action.rb', line 350 def finalize @sprite.color = @color @finalized = true end |