Sha256: 569ae90a774dbac3fd48305b0bcef07b91243383f6f1003dcd9a4b1709bf6986

Contents?: true

Size: 377 Bytes

Versions: 1

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true
Shoes.app do
  background rgb(0, 0, 0)
  fill rgb(255, 255, 255)
  rects = [
    rect(0, 0, 50, 50),
    rect(0, 0, 100, 100),
    rect(0, 0, 75, 75)
  ]
  animate(24) do
    rects.each do |r|
      r.move(rand(0..400), rand(0..400))
    end
  end
  button "OK", top: 0.5, left: 0.5 do
    quit unless confirm "You ARE sure you're OK??"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-4.0.0.pre12 samples/simple_anim_shapes.rb