# Draw API Gradient Fills

**URL:** <https://forum.kirupa.com/t/draw-api-gradient-fills/195133>\
**Category:** flash\
**Created:** [July 28, 2006, 4:46pm UTC](https://forum.kirupa.com/t/draw-api-gradient-fills/195133 "2006-07-28T16:46:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![buginajar](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@buginajar](https://forum.kirupa.com/u/buginajar)\
**Post date:** [July 28, 2006, 4:46pm UTC](https://forum.kirupa.com/t/draw-api-gradient-fills/195133/1 "2006-07-28T16:46:44Z")

</div>

Is it possible to draw a rectangle dynamically using ‘lineTo()’ and have it fill with a gradient that is 100% alpha on one side and 0% on the other?
