nmpRGBToDint (Function) |
Top Previous Next |
This function will convert the provided 3-color components to a single DINT that contains the resulting color. The format of the resulting color as a hex value is 16#00_rr_gg_bb, where "rr", "gg", and "bb" are the hex representation of the three components.
Input: r : INT (0..255) The red component of the color.
g : INT (0..255) The green component of the color.
b : INT (0..255) The blue component of the color.
Returns: DINT The color.
Declaration: FUNCTION nmpRGBToDint : DINT;
Example: INCLUDE rtcu.inc |