Color::FromGreen

Color::FromGreen
static inline Color FromGreen(UByte g);
Description

FromGreen creates a new color with all channels set to zero except for the green component, which is assigned to the passed value.

Parameters
Parameters 
Description 
UByte g 
A value that is stored in the new colors green channel. 
Return Value

A new Color object initialized to rgba(0,g,0,0).

See Also