Sha256: 2a5f43e557c5ff6fdec658ccfd61a229d3b207e7277bd896b3e01e5a353a44e4
Contents?: true
Size: 921 Bytes
Versions: 2
Compression:
Stored size: 921 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.1.1 | motion/joybox/actions/tint.rb |
joybox-1.1.0 | motion/joybox/actions/tint.rb |