Shoes.app :width => 400, :height => 300 do
  @x, @y = 0, 0
  @shape = shape :fill => '#333', :stroke => '#aaa' do
    move_to 0,0
    line_to 300,-100
    line_to 0,-100
    line_to 0,0
  end
  animate 30 do
    @shape.move(@x+=3,@y+=5)
  end
end

As you can (may) see, as soon as the shape touches the bottom it disappears.

Reply via email to