Colour Threshold Settings

The Threshold Settings in Draws and Controls must be configured when the "Back Color Properties common to Drawis and Controls" , "Edge - Text Color Properties common to Draws and Controls", or "Filling Properties common to Draws and Controls"  properties are enabled. In this case, you will  need to assign colors to the values that can be obtained by the variable set in the animation properties.  There are virtually an unlimited number of color thresholds that can be entered.

The assign color will be activated when the value of the variable obtains the same value set for the threshold. When the value of the variable exceeds the value set for the threshold, the color assigned to the next threshold will be activated and so on.

 

 

For instance, by taking into consideration the settings reported in the above image, we should get:

 

Variable Value

Color

0

Red

1

Green

10

Blue

...

...

90

Cyan

100

Yellow

...

...

 

If the 'Analog Colors' option has been selected, the transition from one color threshold to another will be gradual whereby a series of intermediate colours managed by Movicon will be displayed at Runtime.

 

By using the "Copy" and "Paste" commands described below, you wil be able to copy the defined color threshold list from one object and paste it in other different objects. This wil allow you to quickly transfer color thresholds from one object to another for all types of dynamic animations: "Background color", "dynamic Text", "Text & Edge Colors" and "Gradual Filling".

 

The buttons positioned on the right hand side of the dialog window allow you to edit the colour thresholds. Their functions are:

 

 

You are required to enter at least two thresholds when editing them.  However, you can delete all the color thresholds from the list.  In this case Movicon will  use the default threshold list, and the nest time the threshold edit window is opened all the default thresholds will show again.

 

 

Edit Threshold Colour

When you press the Add or Edit buttons in the window listing the inserted thresholds, a dialog window will open allowing you to configure the parameters of each one:

 

Value

This is  used to enter the desired value which will then be compared with the value contained in the animation variable to determine when the threshold in question must be activated.

 

Variable

This is used to enter the name of the variable to be used instead of the  place of the Value property.  It can also be selected with the "..." browse button on the right. This will make the threshold's value because it allows the contents of the variable to be used and edited at Runtime.

 

Be careful not to confuse the Threshold Variable with the Animation Variable entered for the Colour Threshold management. The Threshold Variable is only needed to make the value of each single threshold dynamic. This means that if the same variable is inserted, in the Threshold Variable field and in the Variable field by mistake, the animation will stop working and the components will keep the same colour with the reference variable and the threshold value will remain unchanged.

 

Mode

This allows you to select the animation's behaviour when reaching the threshold. The following actions, which will be executed when the value  has been reached, can be selected:

 

Blink Time

The blink time is entered in this box and will be used when the Customized Blinking option has been selected in the Mode property. This time is expressed in milliseconds.

 

Text

The text string is entered in this edit box. The string will be displayed inside the component together with any animations that have been set when the preset threshold has been reached. This option allows you to create dynamic texts. This property is only available for the "Edge - Text Color Properties common to Draws and Controls"  function.

 

Color

This setting is used to select the colour to be assigned to the Threshold.

For further information on selecting colours, please refer to the paragraph on "Color Selection".

 

Blink Colour

This is used to select the blink colour to be used together with the threshold's Color when the Customized Blink in the Mode property has been selected.

For further information on selecting colours, please refer to the paragraph on  "Color Selection".

 

 

See Also