Sha256: ff6da6e58fdfeac7e4623c4712e65356d03403a3af52281cce040f947cd4c325
Contents?: true
Size: 515 Bytes
Versions: 1
Compression:
Stored size: 515 Bytes
Contents
# frozen_string_literal: true Shoes.app title: 'potacho', width: 175, height: 160 do background tan @imgs = [] 1.upto 59 do |i| @imgs << image(File.expand_path(File.join(__FILE__, "../potato_chopping/1258_s#{format('%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.positive? a.remove if i > 57 end end button(' start ') { potacho }.move 10, 130 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre12 | samples/good_potato_chopping.rb |