Sha256: 54488dabab794dff840740682d3d8f1dc38791dbe8fc8b19321d0446ad3ec730
Contents?: true
Size: 433 Bytes
Versions: 2
Compression:
Stored size: 433 Bytes
Contents
module WSLight module Animation # Base class for all animations, defines common methods class BaseAnimation attr_accessor :set_from, :set_to, :type def initialize(set_from, set_to) @set_from = set_from @set_to = set_to end def frame_data(count) frame(count).collect{|color| color.to_a}.flatten end def frames_per_second 25.0 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ws_light-0.3.0 | lib/ws_light/animation/base_animation.rb |
ws_light-0.2.0 | lib/ws_light/animation/base_animation.rb |