Color::FromAlpha

Color::FromAlpha
static inline Color FromAlpha(UByte a);
Description

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

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

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

See Also