%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
RAmount of red color in final color.
GAmount of green color in final color.
BAmount 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, ...).

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .