Color
Last updated
Last updated
With a Color type animation, you can change the colors of objects on the mimic display.
A javascript expression is applied to change the color of a selected text object, as shown in Figure 1.
Let's examine the code below, written in the expression part of Figure 1.
As shown in Figure 2, we make a selected variable appear in different colors on different values on a selected object, without coding, by adding or editing the configuration settings on the form.
Let us examine the details of the Color-Switch Form shown in Figure 3 below.
When you open the animation wizard form for a selected object as in Figure 2, switch to the color tab and click the switch radio button on the right side, the form in Figure 3 opens. Here you will be prompted for the following parameters.
Variable: The variable to which we want to link our Color animation.
Default Value : If the value of the variable that we are connecting to cannot be read or if the communication is gone. (Example : #7A006D)
In the Color section, you are asked for two colors. Here the second color is not mandatory. When you enter the second color, it will blink between the two selected colors.
Switch-color gradient animation on a selected object, as shown in Figure 5, allows a variable value to switch proportionally over the selected two colors between 0 and 100 values.
When we select the Gradient checkbox at the bottom of the form in Figure 5, we make the proportional transition between two colors in the related conditions. In this example, we make the selected object to switch from dark red to light red by variable value.
Condition-Value-Color : It allows us to display in different colors according to the conditions that we will determine on the variable value. You can add conditions by pressing the button. In the Condition section you will be presented with options as shown in Figure 4. The meaning of the example in Figure 4; If the value of the variable named Percent is less than or equal to 10, blink the object color in red and black.