GR_RGB()

Name

GR_RGB() -- Create a color by RGB components

Synopsis

GR_COLOR GR_RGB ( unsigned char r , unsigned char g , unsigned char b );

Description

This macro constructs a GR_COLOR variable type from it's component colors. Each parameter defines the level of the component (red, green and blue) colors.

Parameters

TypeNameDescription
unsigned charrThe level of RED component in the resulting color.
unsigned chargThe level of GREEN component in the resulting color.
unsigned charbThe level of BLUE component in the resulting color.

Returns

A GR_COLOR value.

See Also

GR_COLOR.