# Creating dynamic colors

**URL:** <https://forum.inductiveautomation.com/t/creating-dynamic-colors/70146>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [February 22, 2023, 6:43am UTC](https://forum.inductiveautomation.com/t/creating-dynamic-colors/70146 "2023-02-22T06:43:37Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![Jeremy](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@Jeremy](https://forum.inductiveautomation.com/u/Jeremy)\
**Post date:** [February 27, 2023, 8:28am UTC](https://forum.inductiveautomation.com/t/creating-dynamic-colors/70146/15 "2023-02-27T08:28:06Z")

</div>

So, here is what I have finally done :

- I have an UDT containing :  
-- a Memory Dataset of columns Index (Int), Description (String), Color (Color) containing all possible animation used by Styles customizer  
-- a expression tag for each color usable outside of Styles customizer referencing the dataset. This way it's easier to use for single color references  
-- a memory tag for each color NOT used in Styles customizer for background of popup windows for exemple of for unanimated element.
- I have another UDT containing blinking tag
- In every animated object, I have create an int containing the reference Index of the color Dataset. Additionally, I use the appropriate blinking tag to change this value. This int is used in the Style customizer as long as the color dataset

This wait every color I use several times is referenced in that UDT and if I wanted, I could create an editor and make it available to the user so he could change the colors.

---

_[View the full topic](https://forum.inductiveautomation.com/t/creating-dynamic-colors/70146)._
