Color::GetColorGray

Color::GetColorGray
inline Color GetColorGray() const;
Description

GetColorGray returns a new color formed from the RGB grayscale value of the current color: (g,g,g,this.a). The alpha channel is obtained directly from the current color. The gray value stored in the RGB channels is calculated using the GetGray function.

Return Value

A new Color, formed from the current colors RGB grayscale: (g,g,g,this.a).

See Also