Method: Ray::Animation#start
- Defined in:
- lib/ray/animation.rb
#start(on) ⇒ Object
Starts the animation.
90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/ray/animation.rb', line 90 def start(on) @target = on @start_time = Time.now @end_time = @start_time + duration @running = true setup_target self end |