Sha256: cabaf65ba8b60dbb74955c33786df8a187ee083d08e0818169e517edf739e9b4
Contents?: true
Size: 318 Bytes
Versions: 1
Compression:
Stored size: 318 Bytes
Contents
# frozen_string_literal: true Shoes.app do stack top: 0.5, left: 0.5 do para "Counting up:" l = para "0" animate(24) do |i| f = ['Arial 14px', 'Serif 34px', 'Monospace 18px', 'Arial 48px'][rand(3)] l.replace i.to_s, font: f end motion do |x, y| Shoes.p [x, y] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre12 | samples/simple_anim_text.rb |