# Draw line freehand and close

**URL:** <https://forum.kirupa.com/t/draw-line-freehand-and-close/298481>\
**Category:** Uncategorized\
**Created:** [October 19, 2009, 9:27pm UTC](https://forum.kirupa.com/t/draw-line-freehand-and-close/298481 "2009-10-19T21:27:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mthicke](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@mthicke](https://forum.kirupa.com/u/mthicke)\
**Post date:** [October 19, 2009, 9:27pm UTC](https://forum.kirupa.com/t/draw-line-freehand-and-close/298481/1 "2009-10-19T21:27:01Z")

</div>

I’m writing a program that lets the user draw a freehand line following the mouse. I want the line to close as the user crosses the line at the point where it crosses. Any thought on how to implement this?
