# Shape Completion Test!?

**URL:** <https://forum.kirupa.com/t/shape-completion-test/279147>\
**Category:** flash\
**Created:** [January 10, 2009, 4:20am UTC](https://forum.kirupa.com/t/shape-completion-test/279147 "2009-01-10T04:20:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tartarus](https://avatars.discourse-cdn.com/v4/letter/t/43a26b/32.png) [@Tartarus](https://forum.kirupa.com/u/Tartarus)\
**Post date:** [January 10, 2009, 4:20am UTC](https://forum.kirupa.com/t/shape-completion-test/279147/1 "2009-01-10T04:20:40Z")

</div>

Hi,  
This task has been driving me crazy for the past two weeks…  
I’m trying to figure out how to program a shape completion test and whether an object is inside that shape. I’m making a game where the goal is to draw a line around a moving opponent, trapping it inside.  
 ![](http://forum.kirupa.com/uploads/kirupa/5097/dce18d62acd56966.jpg)

Any ideas on how this can be done? If I end up using an idea/concept suggested by you, I’ll definitely credit in-game.

Thank you!
