Sha256: 90f9af2b4bc10a060afbd7456b754306a8912553548fe97367de944f26916549

Contents?: true

Size: 240 Bytes

Versions: 6

Compression:

Stored size: 240 Bytes

Contents

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

    # Bounce the second butotn
    animate do |i|
      @two.displace(0, (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/displace-animation.rb
scarpe-0.3.0 examples/legacy/not_checked/shoes-contrib/elements/displace-animation.rb
scarpe-0.2.2 examples/legacy/not_checked/shoes-contrib/elements/displace-animation.rb
lacci-0.2.1 examples/legacy/not_checked/shoes-contrib/elements/displace-animation.rb
scarpe-0.2.1 examples/legacy/not_checked/shoes-contrib/elements/displace-animation.rb
scarpe-0.2.0 examples/legacy/not_checked/shoes-contrib/elements/displace-animation.rb