# Mouse Over Color Fill

**URL:** <https://forum.inductiveautomation.com/t/mouse-over-color-fill/20478>\
**Category:** Ignition\
**Created:** [November 1, 2018, 1:00pm UTC](https://forum.inductiveautomation.com/t/mouse-over-color-fill/20478 "2018-11-01T13:00:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [November 1, 2018, 1:00pm UTC](https://forum.inductiveautomation.com/t/mouse-over-color-fill/20478/1 "2018-11-01T13:00:09Z")

</div>

I have a floor plan that has departments, or zones, that can be selected to drill down into that area with another screen. I have svg shapes that determine the zones. I’m trying to get the svgs to be transparent until you mouse over them, which would set the color to a semi-transparent one. I’ve tried setting it using these, but no luck. Am I going about this wrong, or is my script just lacking? I’m using the mouseEntered event handler in scripting. thanks

```auto
event.source.fillPaint = "255,255,255" 
event.source.fillPaint = java.awt.toColor("255,255,255")

```

---

<div class="post-metadata">

**Author:** ![nick.schuetz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nick.schuetz/32/6160_2.png) [@nick.schuetz](https://forum.inductiveautomation.com/u/nick.schuetz)\
**Post date:** [November 1, 2018, 1:11pm UTC](https://forum.inductiveautomation.com/t/mouse-over-color-fill/20478/2 "2018-11-01T13:11:15Z")

</div>

You might want to try system.gui.color() to return a color instead of assigning a string.  
[https://docs.inductiveautomation.com/display/DOC79/system.gui.color](https://docs.inductiveautomation.com/display/DOC79/system.gui.color)

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [November 1, 2018, 1:14pm UTC](https://forum.inductiveautomation.com/t/mouse-over-color-fill/20478/3 "2018-11-01T13:14:49Z")

</div>

Thanks, I actually found this right before you posted. However, the link was perfect to fill me in on using the alpha argument as well for the transparency. Thanks

```auto
event.source.fillPaint = system.gui.color(255,255,255,100)

```

for transparent white.  
Thanks Nick
