![]() | |
Extensions Class |
public static class Extensions
The Extensions type exposes the following members.
Name | Description | |
---|---|---|
![]() | Saturate(Color3) | Ensures that the color components are within 0 and 1 - if smaller than 0 than the value is set to 0; if bigger than 1 the value is set to 1. This is the same as saturate function in HLSL. |
![]() | Saturate(Color4) | Ensures that the color components are within 0 and 1 - if smaller than 0 than the value is set to 0; if bigger than 1 the value is set to 1. This is the same as saturate function in HLSL. |
![]() | ToColor3 | Converts WinUI Color to SharpEngine's Color3 |
![]() | ToColor4 | Converts WinUI Color to SharpEngine's Color4 |
![]() | ToPremultipliedColor3(Color) | Converts WinUI Color to premultipled SharpEngine's Color3 (premultipled color is color where R, G and B color values are multiplied with alpha value) |
![]() | ToPremultipliedColor3(Color, Single) | Converts WinUI Color to premultipled SharpEngine's Color3 (premultipled color is color where R, G and B color values are multiplied with alpha value) |
![]() | ToPremultipliedColor4 | Converts WinUI Color to premultipled SharpEngine's Color4 (premultipled color is color where R, G and B color values are multiplied with alpha value) |
![]() | ToWinUIColor(Color3) | Converts SharpEngine's Color3 to WinUI color |
![]() | ToWinUIColor(Color4) | Converts SharpEngine's Color4 to WinUI color |