# Drawing API - clear line only a a certain point?

**URL:** <https://forum.kirupa.com/t/drawing-api-clear-line-only-a-a-certain-point/211042>\
**Category:** Uncategorized\
**Created:** [December 26, 2006, 8:30am UTC](https://forum.kirupa.com/t/drawing-api-clear-line-only-a-a-certain-point/211042 "2006-12-26T08:30:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rororo](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rororo](https://forum.kirupa.com/u/rororo)\
**Post date:** [December 26, 2006, 8:30am UTC](https://forum.kirupa.com/t/drawing-api-clear-line-only-a-a-certain-point/211042/1 "2006-12-26T08:30:52Z")

</div>

Hi eveyone,

is it possible to somehow use a the clear() function on a line that has been dynamically drawn only at a certain point? i need a line to be drawn and then gradually erased with time. currently i’m drawing a green line and then a few seconds later, a start up a function that creates a white line above it. it works great if this line is above a white background, but if it’s above some other element, you see a white line 🙂

any thoughts?
