Color::SetGray

Color::SetGray
inline void SetGray(UByte g);
Description

SetGray assigns the current color's red, green, and blue to the passed grayscale value. After calling this method, each of the RGB components contains the same grayscale value, ranging from 0 to 255. The current color's alpha channel is not changed.

Parameters
Parameters 
Description 
UByte g 
A value, ranging from 0 to 255, that is set to each of the RGB components. 
See Also