Sha256: 7280a287cb1d9c161d812f60e80be3cd4971a545213447ef5d86b78d658d9960

Contents?: true

Size: 591 Bytes

Versions: 27

Compression:

Stored size: 591 Bytes

Contents

# This is a tiny flip book (aka Para-Para Manga in Japanese)
# original is http://www.paraman.net/play/preview/1258
# 
require '../lib/green_shoes'

Shoes.app title: 'potacho', width: 175, height: 160 do
  background tan
  
  @imgs = []
  1.upto 60 do |i|
    @imgs << image("./potato_chopping/1258_s#{"%03d" % i}.gif").hide.move(10, 10)
  end

  @imgs.first.show
  
  def potacho
    @imgs[59].hide
    a = animate 12 do |i|
      @imgs[i].show
      @imgs[i-1].hide if i > 0
      a.stop if i > 58
    end
  end
  
  button('  start  '){potacho}.move 10, 130
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
green_shoes-1.0.337 samples/sample20.rb
green_shoes-1.0.331 samples/sample20.rb
green_shoes-1.0.322 samples/sample20.rb
green_shoes-1.0.320 samples/sample20.rb
green_shoes-1.0.309 samples/sample20.rb
green_shoes-1.0.303 samples/sample20.rb
green_shoes-1.0.282 samples/sample20.rb
green_shoes-1.0.273 samples/sample20.rb
green_shoes-0.263.0 samples/sample20.rb
green_shoes-0.255.0 samples/sample20.rb
green_shoes-0.243.0 samples/sample20.rb
green_shoes-0.233.0 samples/sample20.rb
green_shoes-0.227.0 samples/sample20.rb
green_shoes-0.226.0 samples/sample20.rb
green_shoes-0.221.0 samples/sample20.rb
green_shoes-0.214.0 samples/sample20.rb
green_shoes-0.207.0 samples/sample20.rb
green_shoes-0.201.0 samples/sample20.rb
green_shoes-0.198.0 samples/sample20.rb
green_shoes-0.189.0 samples/sample20.rb