Sha256: 8f82a276a1fb3e844cf25604ded196053705f54f3a1ff3394dbd3e2c7b599235

Contents?: true

Size: 242 Bytes

Versions: 6

Compression:

Stored size: 242 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

6 entries across 6 versions & 2 rubygems

Version Path
scarpe-0.4.0 examples/legacy/not_checked/shoes-contrib/elements/move-flow-animate.rb
scarpe-0.3.0 examples/legacy/not_checked/shoes-contrib/elements/move-flow-animate.rb
scarpe-0.2.2 examples/legacy/not_checked/shoes-contrib/elements/move-flow-animate.rb
lacci-0.2.1 examples/legacy/not_checked/shoes-contrib/elements/move-flow-animate.rb
scarpe-0.2.1 examples/legacy/not_checked/shoes-contrib/elements/move-flow-animate.rb
scarpe-0.2.0 examples/legacy/not_checked/shoes-contrib/elements/move-flow-animate.rb