Sha256: 12b94dc4e5631a8582ffe34da1454147bf63be549a9bf4c27edacf8ca786dd7b
Contents?: true
Size: 926 Bytes
Versions: 2
Compression:
Stored size: 926 Bytes
Contents
module Joybox module Actions class Tint def self.defaults { duration: 0.3, color: Common::Color.from_rgb(1, 1, 1) } end def self.by(options = {}) options = options.nil? ? defaults : defaults.merge!(options) CCTintBy.actionWithDuration(options[:duration], red: options[:color].red, green: options[:color].green, blue: options[:color].blue) end def self.to(options = {}) options = options.nil? ? defaults : defaults.merge!(options) CCTintTo.actionWithDuration(options[:duration], red: options[:color].red, green: options[:color].green, blue: options[:color].blue) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.0.0 | motion/joybox/actions/tint.rb |
joybox-0.0.6 | motion/joybox/actions/tint.rb |