Sha256: 5ed1b0d4dbcb9891ddf7bac2066ffdfdbe800cae06889f1de4ac93e6d94a905a

Contents?: true

Size: 601 Bytes

Versions: 2

Compression:

Stored size: 601 Bytes

Contents

require File.join(File.dirname(__FILE__), 'setup')

l = Launchpad.new(:input => false, :output => true)

sleep 1

pos_x = pos_y = 0
4.times do |red|
  4.times do |green|
    l.single :x => pos_x, :y => pos_y, :red => red, :green => green, :mode => :buffering
    l.single :x => 7 - pos_x, :y => pos_y, :red => red, :green => green, :mode => :buffering
    l.single :x => pos_x, :y => 7 - pos_y, :red => red, :green => green, :mode => :buffering
    l.single :x => 7 - pos_x, :y => 7 - pos_y, :red => red, :green => green, :mode => :buffering
    pos_y += 1
  end
  pos_x += 1
  pos_y = 0
end

sleep 1

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
launchpad-0.0.2 examples/colors.rb
launchpad-0.0.1 examples/colors.rb