Color::FromRed

Color::FromRed
static inline Color FromRed(UByte r);
Description

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

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

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

See Also