Update cookies preferences
Promotic

ColorRgb - method of the Pm object

Description:
Returns the color by entering the three RGB components.
Syntax:
String ColorRgb(Long nRed, Long nGreen, Long nBlue)
Parameters:
nRed(Long) Number between 0-255. Red component of the color.
nGreen(Long) Number between 0-255. Green component of the color.
nBlue(Long) Number between 0-255. Blue component of the color.
Return value:
Returns a value of the color as RGB String in the form "#RRGGBB".
Note:
This method is functional also in Macro expression $.expr and in the onDraw event of the PmgCanvas object.
This method is also functional in Web panels.
Example:
Creating yellow color (string "#ffff00") with RGB components (255, 255, 0).
JavaScriptVBScriptSelect and copy to clipboard

var sColor = Pm.ColorRgb(255, 255, 0);

History:
Pm8.01.01: Available for Web panels.
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- ColorRgb
 
 
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r.o.