<< Click to Display Table of Contents >> Common color change |
![]() ![]() ![]() |
We create tag with name State:
Depending on the tag's value we want to change fill color of the Rectangle object (instead of the Rectangle there can be other objects and instead of the fill color property there can be other color properties):
For example we want to have fill color Red if our (State) tag's value equal 0, and fill color Green if tag's value not equal 0. We need to enable Fill color property and fill it like this:
Click OK to confirm your changes and Run simulation to check your settings:
You can download this project here.