Sha256: a7ba549a9144b8ec8dbe265f4bc319ef6d85ef5e910b2053af6e39d4b13b479b
Contents?: true
Size: 634 Bytes
Versions: 2
Compression:
Stored size: 634 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.0.0 | motion/joybox/actions/scale.rb |
joybox-0.0.6 | motion/joybox/actions/scale.rb |