PalStatus
(Engine-Level Function)
Color | ||||||||||
Required. Any expression giving the color to examine. May be a number from 0 to 255 (from the VTScada palette) or an RGB value with alpha channel, expressed as "<AARRGGBB>". | ||||||||||
RGBIndex | ||||||||||
Required. Any numeric expression giving the color component to return. Red, green, blue, or alpha.
|
Comments: | The returned number ranges from 0 to 1, and indicates the red, green, or blue color content of a color index, or the alpha channel (opacity) in the case of index 3. |
Example:
ZText(10, 10, Concat("Red = " , PalStatus(14, 0)), 14, 0); ZText(10, 20, Concat("Green = ", PalStatus(14, 1)), 14, 0); ZText(10, 30, Concat("Blue = " , PalStatus(14, 2)), 14, 0);
This displays the color mix for color index 14 (yellow - FFFFFF00) in that color. The values displayed in this case will be 1, 1 and 0 respectively.