Class: Yuki::Animation::ToneAnimation
- Inherits:
-
TimedAnimation
- Object
- TimedAnimation
- Yuki::Animation::ToneAnimation
- Defined in:
- docs/4_Systems_005_Animation.rb
Overview
Animation responsible of changing tone of an object over time
Instance Attribute Summary
Attributes inherited from TimedAnimation
#begin_time, #end_time, #time_source
Attributes included from Yuki::AnimationMixin
Instance Method Summary collapse
-
#initialize(time_to_process, on, a, b, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) ⇒ ToneAnimation
constructor
Create a new ToneAnimation.
-
#start(begin_offset = 0) ⇒ self
Start the animation (initialize it).
-
#update_internal(time_factor)
Update the animation, interpolating the tone values.
Methods inherited from TimedAnimation
#done?, #duration, #parallel_add, #play_before, #update
Methods included from Yuki::AnimationMixin
#begin_offset_for_next_animation, #done?, #duration, #update
Constructor Details
#initialize(time_to_process, on, a, b, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) ⇒ ToneAnimation
Create a new ToneAnimation
1049 1050 |
# File 'docs/4_Systems_005_Animation.rb', line 1049 def initialize(time_to_process, on, a, b, distortion: :UNICITY_DISTORTION, time_source: :SCENE_TIME_SOURCE) end |
Instance Method Details
#start(begin_offset = 0) ⇒ self
Start the animation (initialize it)
1054 1055 |
# File 'docs/4_Systems_005_Animation.rb', line 1054 def start(begin_offset = 0) end |
#update_internal(time_factor)
Update the animation, interpolating the tone values
1058 1059 |
# File 'docs/4_Systems_005_Animation.rb', line 1058 def update_internal(time_factor) end |