# Apply level filling animation effect on any polygon object

**URL:** <https://forum.inductiveautomation.com/t/apply-level-filling-animation-effect-on-any-polygon-object/20010>\
**Category:** Ignition\
**Created:** [October 6, 2018, 9:21am UTC](https://forum.inductiveautomation.com/t/apply-level-filling-animation-effect-on-any-polygon-object/20010 "2018-10-06T09:21:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nader.chinichian](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nader.chinichian/32/9261_2.png) [@nader.chinichian](https://forum.inductiveautomation.com/u/nader.chinichian)\
**Post date:** [October 6, 2018, 9:21am UTC](https://forum.inductiveautomation.com/t/apply-level-filling-animation-effect-on-any-polygon-object/20010/1 "2018-10-06T09:21:04Z")

</div>

Hello  
I see in ignition by default I can use level indicator effect or filling effect on only “level indicator” component.  
I have hand made polygon object and I want to apply filling animation effect on it base on a tag value like “level indicator” component.

Can some one tell me the script code for it?

thanks

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [October 16, 2018, 5:51am UTC](https://forum.inductiveautomation.com/t/apply-level-filling-animation-effect-on-any-polygon-object/20010/2 "2018-10-16T05:51:39Z")

</div>

> [@Animate Fill Level On Irregular Shaped Component](http://forum.inductiveautomation.com/t/animate-fill-level-on-irregular-shaped-component/15740/4):
>
> Thanks for pointing out the paintable canvas for this, @pturmel. Using it to draw a shape and then fill to a certain level is easy using the clip method. Definitely beats my previous method of creating shapes to fill the area and dynamically calculating their size and position to make it all work! Below is a basic example, in case it’s helpful to others. It expects the paintable canvas to have a custom property fillPercent used to set the fill level 0-100%: from java.awt import Color from java…
