ConversionExtensions.ToRGBA

Extension Method in ConversionExtensions

Declaration

public static RGBA ToRGBA(this Color color)

Description

Converts the color to RGBA (red, green, blue, alpha) components in the range [0..1].

Parameters

colorThe color to convert.

Returns

RGBAThe RGBA components of the color.

Overload

Declaration

public static RGBA ToRGBA(this Color color, float alpha)

Description

Converts the color to RGBA (red, green, blue, alpha) components in the range [0..1].

Parameters

colorThe color to convert.
alphaThe alpha component in the range [0..1].

Returns

RGBAThe RGBA components of the color.