Sha256: 134170f61ec95c3b8173616ca343701d00850adbcb6645135248d7df8f36e3ef

Contents?: true

Size: 238 Bytes

Versions: 2

Compression:

Stored size: 238 Bytes

Contents

Shoes.app do
  flow margin: 12 do
    # Set up three buttons
    button "One"
    @two = button "Two"
    button "Three"

    # Bounce the second button
    animate do |i|
      @two.move(40, 40 + (Math.sin(i) * 6).to_i)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shoes-4.0.0.pre2 samples/simple-move.rb
shoes-4.0.0.pre1 samples/simple-move.rb