class WSLight::Animation::BaseAnimation
Base class for all animations, defines common methods
Attributes
set_from[RW]
set_to[RW]
type[RW]
Public Class Methods
new(set_from, set_to)
click to toggle source
# File lib/ws_light/animation/base_animation.rb, line 7 def initialize(set_from, set_to) @set_from = set_from @set_to = set_to end
Public Instance Methods
frame_data(count)
click to toggle source
# File lib/ws_light/animation/base_animation.rb, line 12 def frame_data(count) frame(count).collect(&:to_a).flatten end
frames_per_second()
click to toggle source
# File lib/ws_light/animation/base_animation.rb, line 16 def frames_per_second 25.0 end