Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (13 sloc) 0.373 kB

start and stop animation

Run and read the below snippet. ;-)

# sample2.rb
Shoes.app :width => 300, :height => 300 do
  @star = star 0, 0, 10, 15, 10

  a = animate(10) do |i|
    @star.move(10*i, 10*i)
    a.stop if i > 25
  end
end

sample2.png

sample2.png

Jump to Line
Something went wrong with that request. Please try again.