-
Notifications
You must be signed in to change notification settings - Fork 123
VRageMath.ColorExtensions
← Index ← Namespace Index
public abstract sealed class ColorExtensions
Namespace: VRageMath
Assembly: VRage.Math.dll
static Color Alpha(this Color c, float a)
static Vector3 ColorToHSV(this Color rgb)
static Vector3 ColorToHSVDX11(this Color rgb)
Use this for HSV in DX11 Renderer, X = Hue 0..1, Y = Saturation -1..1, Z = Value -1..1
static Color? FromHtml(string htmlColor)
static Color HexToColor(string hex)
static Vector4 HexToVector4(string hex)
static Color HSVtoColor(this Vector3 HSV)
static float HueDistance(this Color color, float hue)
static float HueDistance(this Color color, Color otherColor)
static uint PackHSVToUint(this Vector3 HSV)
static Vector4 PremultiplyColor(this Vector4 c)
static Color Shade(this Color c, float r)
static Vector3 TemperatureToRGB(float temperature)
static Color Tint(this Color c, float r)
static Vector3 ToGray(this Vector3 c)
static Vector4 ToGray(this Vector4 c)
static Vector4 ToLinearRGB(this Vector4 c)
static Vector3 ToLinearRGB(this Vector3 c)
static float ToLinearRGBComponent(float c)
static Vector4 ToSRGB(this Vector4 c)
static Vector3 ToSRGB(this Vector3 c)
static float ToSRGBComponent(float c)
static Vector4 UnmultiplyColor(this Vector4 c)
static Vector3 UnpackHSVFromUint(uint packed)
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!