# Detect objects in shape

**URL:** <https://forum.kirupa.com/t/detect-objects-in-shape/331303>\
**Category:** flash\
**Created:** [July 2, 2013, 3:42pm UTC](https://forum.kirupa.com/t/detect-objects-in-shape/331303 "2013-07-02T15:42:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregmax](https://avatars.discourse-cdn.com/v4/letter/g/ac8455/32.png) [@gregmax](https://forum.kirupa.com/u/gregmax)\
**Post date:** [July 2, 2013, 3:42pm UTC](https://forum.kirupa.com/t/detect-objects-in-shape/331303/1 "2013-07-02T15:42:59Z")

</div>

Hello, I am scratching my head about this: how do I detect if my object (circle in this case) is inside a custom shape/outline?

Here is a sample image:

How would I be able to detect if the green circle is in the shape fully (which it is), and if the blue circle is? And HOW can I find the percentage on how much of the blue circle is in the custom shape/outline?
