Sha256: 6f7cb04bfc9c5ef5dc19b00181b86d0c185f1a689f30a61e9c8886e7571b52ae

Contents?: true

Size: 319 Bytes

Versions: 1

Compression:

Stored size: 319 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.rc1 samples/simple_anim_text.rb