ConversionExtensions.ToColor<T>
Extension Method in ConversionExtensions
Declaration
public static Color ToColor<T>(this T model, float alpha)
where T : struct, IComponentModelDescription
Converts the components to a color with a specified alpha.
Type Parameters
| T |
Parameters
| model | The component model to convert. |
| alpha | The alpha component in the range [0..1]. |
Returns
| Color | The converted color. |