MakeRGB

MakeRGB

%MakeRGB function


Function

The function transforms the color expressed by the items R, G and B to a value. 

Declaration

INT %MakeRGB( INT in R, INT in G, INT in B )

Parameters

R

Amount of red color in final color.

G

Amount of green color in final color.

B

Amount of blue color in final color.

The numerical values of the parameters R, G and B must be within the interval 0..255.

Description

The final value is calculated as follows:

R + 256*G + 65536*B.

The final value is usable as a value to express the color in functions, which directly works with colors (%HI_SetForeColor, ...).


Related pages:

ESL extended functions
Function arguments - types