Sha256: a5ee41fc4d435ab0e5d75b0ae5fcbc1239b5397746c0d378fedcaf17ceba4e0d
Contents?: true
Size: 741 Bytes
Versions: 1
Compression:
Stored size: 741 Bytes
Contents
module Joybox module Actions class Fade def self.defaults { duration: 0.3, opacity: 0 } end def self.in(options = {}) options = options.nil? ? defaults : defaults.merge!(options) CCFadeIn.actionWithDuration(options[:duration]) end def self.out(options = {}) options = options.nil? ? defaults : defaults.merge!(options) CCFadeOut.actionWithDuration(options[:duration]) end def self.to(options = {}) options = options.nil? ? defaults : defaults.merge!(options) CCFadeTo.actionWithDuration(options[:duration], opacity: options[:opacity]) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.0.0 | motion/joybox/actions/fade.rb |