The Cockpit object is able to color areas of an image in red, amber or green on the basis of an alert value as in the following example.
To configure a cockpit object with conditional coloring,
configure the object as described in Cockpit configuration,
from the Settings menu, select the square alert style as shown,
then to import the image to color, right-click on the object and select the menu option Set image
Note:
Do not use the object's Background Picture property
then place the square alerts over the areas to color. Switch to play mode (press F4) to trigger the coloring.
Note that the square alert fills with color an area until a border is found therefore it is necessary to use images with well defined areas with borders without any gaps.
It is possible to regulate the colors filling tolerance from the object's Settings menu.