Sha256: 86735b1ed626cd031b817d325a3b46904b8f4e5eed83988026ad524fdfa7f56c
Contents?: true
Size: 402 Bytes
Versions: 6
Compression:
Stored size: 402 Bytes
Contents
Shoes.app(:width => 300, :height => 400) do fill rgb(0, 0.6, 0.9, 0.1) stroke rgb(0, 0.6, 0.9) strokewidth 0.25 @shoes = [] 10.times { @shoes.push(oval :left => (-5..self.width).rand, :top => (-5..self.height).rand, :radius => (25..50).rand) } animate do |i| @shoes.each do |s| s.top += (-20..20).rand s.left += (-20..20).rand end end end
Version data entries
6 entries across 6 versions & 2 rubygems