Method: Fox::Canvas::ShapeCanvas#findShape

Defined in:
lib/fox16/canvas.rb

#findShape(x, y) ⇒ Object

Find the shape of the least depth containing this point



399
400
401
402
403
404
# File 'lib/fox16/canvas.rb', line 399

def findShape(x, y)
  @scene.reverse_each do |shape|
    return shape if shape.hit?(x, y)
  end
  nil
end