# 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:** 1\
**Showing post:** 2

<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…

---

_[View the full topic](https://forum.inductiveautomation.com/t/apply-level-filling-animation-effect-on-any-polygon-object/20010)._
