Class Color4Helper
- Namespace
- HelixToolkit.Maths
- Assembly
- HelixToolkit.Maths.dll
public static class Color4Helper
- Inheritance
-
Color4Helper
- Inherited Members
Methods
ChangeIntensity(Color4, float)
public static Color4 ChangeIntensity(this Color4 c, float intensity)
Parameters
Returns
Encode2FloatToFloat(float, float)
public static float Encode2FloatToFloat(float a, float b)
Parameters
Returns
EncodeToFloat(Color4)
public static float EncodeToFloat(this Color4 color)
Parameters
colorColor4
Returns
FromArgb(int)
Froms the ARGB int.
public static Color FromArgb(this int argb)
Parameters
argbintThe ARGB.
Returns
FromArgb(int, int, int)
Froms the RGB.
public static Color FromArgb(int r, int g, int b)
Parameters
Returns
FromArgb(int, int, int, int)
Froms the ARGB.
public static Color FromArgb(int a, int r, int g, int b)
Parameters
Returns
Normalized(Color4)
public static Color4 Normalized(this Color4 color)
Parameters
colorColor4
Returns
ToArgb(Color)
public static int ToArgb(this Color color)
Parameters
colorColor
Returns
ToColor4(Color3, float)
public static Color4 ToColor4(this Color3 color, float alpha = 0)
Parameters
Returns
ToColor4(string, CultureInfo?)
Tries the prase.
public static Color4 ToColor4(this string color, CultureInfo? culture = null)
Parameters
colorstringThe color.
cultureCultureInfoThe culture.
Returns
Exceptions
ToVector3(Color3)
public static Vector3 ToVector3(this Color3 color)
Parameters
colorColor3
Returns
ToVector4(Color4)
public static Vector4 ToVector4(this Color4 color)
Parameters
colorColor4