Sha256: 304c1792eb54cc582b9456629fa62eb78aabf9bb10c08c0d369903077e39f703

Contents?: true

Size: 398 Bytes

Versions: 2

Compression:

Stored size: 398 Bytes

Contents

module Joybox
  module Actions

    class Blink

      def self.defaults
        {
          duration: 0.3,
          times: 0
        }
      end

      def self.with(options = {})

        options = options.nil? ? defaults : defaults.merge!(options)

        CCBlink.actionWithDuration(options[:duration], 
                                   blinks: options[:times])
      end

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
joybox-1.0.0 motion/joybox/actions/blink.rb
joybox-0.0.6 motion/joybox/actions/blink.rb