Sha256: d22cb2131f2009f46023c1e5c62527544edc5e6c2675dae4ff505fabb46bf48f

Contents?: true

Size: 456 Bytes

Versions: 2

Compression:

Stored size: 456 Bytes

Contents

Shoes.app title: 'potacho', width: 175, height: 160 do
  background tan

  @imgs = []
  1.upto 59 do |i|
    @imgs << image(File.join(Shoes::DIR, "samples/potato_chopping/1258_s#{"%03d" % i}.gif")).hide
    @imgs.last.move(10, 10)
  end

  @imgs.first.show

  def potacho
    @imgs[58].hide
    a = animate 12 do |i|
      @imgs[i].show
      @imgs[i-1].hide if i > 0
      a.remove if i > 57
    end
  end

  button('  start  '){potacho}.move 10, 130
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shoes-4.0.0.pre2 samples/good-potato-chopping.rb
shoes-4.0.0.pre1 samples/good-potato-chopping.rb