Sha256: 4fae2bafce89ff8c423d9ff8c52060826e0a2c354329877a4b0d4d6005f809a9
Contents?: true
Size: 821 Bytes
Versions: 2
Compression:
Stored size: 821 Bytes
Contents
module Joybox module Actions class Wave def self.defaults { duration: 0.3, waves: 1, amplitude: 10, horizontal: true, vertical: true } end def self.with(options = {}) # Todo print error message on the console return unless options.has_key? :grid_size options = options.nil? ? defaults : defaults.merge!(options) CCWaves.actionWithWaves(options[:waves], amplitude: options[:amplitude], horizontal: options[:horizontal], vertical: options[:vertical], grid: options[:grid_size], duration: options[:duration]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
joybox-1.1.1 | motion/joybox/actions/wave.rb |
joybox-1.1.0 | motion/joybox/actions/wave.rb |