vInput | (Variant) Input value over which the transformation of the nType type will be executed. |
---|---|
nType | (Long) Transformation type of the vInput parameter input value:
2 - Darken or lighten the color.
The vInput parameter is RGB String in the form #RRGGBB. The method returns a RGB String in the form #RRGGBB. The returned color is lighter or darker than the color defined in the vInput parameter. The vPar parameter is a real number in the range from -1 to 1, that specifies the lighten ratio (from 0 to 1), or darken ratio (from 0 to -1). 11 - Red color compound.
The vInput parameter is RGB String in the form #RRGGBB. The method returns the numeric value (0-255) of the red component (RR). The vPar parameter has no meaning here and therefore can be omited. 12 - Green color compound.
The vInput parameter is RGB String in the form #RRGGBB. The method returns the numeric value (0-255) of the green component (GG). The vPar parameter has no meaning here and therefore can be omited. 13 - Blue color compound.
The vInput parameter is RGB String in the form #RRGGBB. The method returns the numeric value (0-255) of the blue component (BB). The vPar parameter has no meaning here and therefore can be omited. 21 - Color defined by index.
The vInput parameter is the color entered by the numeric index to the PROMOTIC color palette. The method returns a RGB String in the form #RRGGBB. The vPar parameter has no meaning here and therefore can be omited. |
vPar | [optional] (Variant) Transformation type parameter. The meaning of this parameter is based on the nType parameter. |
var nR = Pm.ColorOper("#ff01d7", 11);
var nG = Pm.ColorOper("#ff01d7", 12);
var nB = Pm.ColorOper("#ff01d7", 13);
var sColor1 = "#808080";
var sColor2 = Pm.ColorOper(sColor1, 2, 0.6);