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
color | The color to convert. |
Returns
RGBA | The 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
color | The color to convert. |
alpha | The alpha component in the range [0..1]. |
Returns
RGBA | The RGBA components of the color. |