Sha256: 0ca1b8516ed617e90cc3053c078e251adb338c343a9918f1a36ff80ffed597c0
Contents?: true
Size: 593 Bytes
Versions: 2
Compression:
Stored size: 593 Bytes
Contents
module Joybox module Actions class Skew def self.defaults { duration: 0.3, x: 0, y: 0 } end def self.by(options = {}) options = options.nil? ? defaults : defaults.merge!(options) CCSkewBy.actionWithDuration(options[:duration], skewX: options[:x], skewY: options[:y]) end def self.to(options = {}) options = options.nil? ? defaults : defaults.merge!(options) CCSkewTo.actionWithDuration(options[:duration], skewX: options[:x], skewY: options[:y]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | motion/joybox/actions/skew.rb |
joybox-1.1.0 | motion/joybox/actions/skew.rb |