Sha256: c7d19589bff2bbb7897fbb0d37c9912d44a382e4457317281e29ab9619612d63
Contents?: true
Size: 552 Bytes
Versions: 2
Compression:
Stored size: 552 Bytes
Contents
module Joybox module Actions class Scale def self.defaults { duration: 0.3, scale: 0 } end def self.by(options = {}) options = options.nil? ? defaults : defaults.merge!(options) CCScaleBy.actionWithDuration(options[:duration], scale: options[:scale]) end def self.to(options = {}) options = options.nil? ? defaults : defaults.merge!(options) CCScaleTo.actionWithDuration(options[:duration], scale: options[:scale]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | motion/joybox/actions/scale.rb |
joybox-1.1.0 | motion/joybox/actions/scale.rb |