Sha256: c51abfb13636c5c23e5ef43acfea2712f1914a1df02512462782e0d72b95d67d
Contents?: true
Size: 645 Bytes
Versions: 2
Compression:
Stored size: 645 Bytes
Contents
module Joybox module Actions class Liquid def self.defaults { duration: 0.3, waves: 1, amplitude: 10 } 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) CCLiquid.actionWithWaves(options[:waves], amplitude: options[:amplitude], 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/liquid.rb |
joybox-1.1.0 | motion/joybox/actions/liquid.rb |