# Control a shapes Fill Paint property with a script

**URL:** <https://forum.inductiveautomation.com/t/control-a-shapes-fill-paint-property-with-a-script/5881>\
**Category:** Ignition\
**Created:** [February 15, 2013, 9:47pm UTC](https://forum.inductiveautomation.com/t/control-a-shapes-fill-paint-property-with-a-script/5881 "2013-02-15T21:47:50Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![bvaldovinos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bvaldovinos/32/6315_2.png) [@bvaldovinos](https://forum.inductiveautomation.com/u/bvaldovinos)\
**Post date:** [September 4, 2019, 10:19pm UTC](https://forum.inductiveautomation.com/t/control-a-shapes-fill-paint-property-with-a-script/5881/7 "2019-09-04T22:19:15Z")

</div>

Try event.source.setStrokeStyle, event.source.setStrokePaint, event.source.setFillPaint. This might help: [Animating a gradient](http://forum.inductiveautomation.com/t/animating-a-gradient/9377/2?u=bvaldovinos)

---

_[View the full topic](https://forum.inductiveautomation.com/t/control-a-shapes-fill-paint-property-with-a-script/5881)._
