JavaScript Required:
This documentation site requires JavaScript to function. Please enable JavaScript in your browser to view the navigation and search features.
đźŹ
🔄 Mod API
VRageMath
ColorExtensions
Assembly:
VRage.Math.dll
public abstract sealed class ColorExtensions
Methods
Member
Description
static Alpha(this Color, float)
static ColorToHSV(this Color)
static ColorToHSVDX11(this Color)
Use this for HSV in DX11 Renderer, X = Hue 0..1, Y = Saturation -1..1, Z = Value -1..1
static FromHtml(string)
static HexToColor(string)
static HexToVector4(string)
static HSVtoColor(this Vector3)
static HueDistance(this Color, float)
static HueDistance(this Color, Color)
static PackHSVToUint(this Vector3)
static PremultiplyColor(this Vector4)
static Shade(this Color, float)
static TemperatureToRGB(float)
static Tint(this Color, float)
static ToGray(this Vector3)
static ToGray(this Vector4)
static ToLinearRGB(this Vector4)
static ToLinearRGB(this Vector3)
static ToLinearRGBComponent(float)
static ToSRGB(this Vector4)
static ToSRGB(this Vector3)
static ToSRGBComponent(float)
static UnmultiplyColor(this Vector4)
static UnpackHSVFromUint(uint)