Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.ColorExtensions

Morten Aune Lyrstad edited this page Apr 16, 2022 · 43 revisions

IndexNamespace Index

ColorExtensions Class

public abstract sealed class ColorExtensions

Namespace: VRageMath
Assembly: VRage.Math.dll

Methods

Member Description
[static Color Alpha(this Color, float)](VRageMath.ColorExtensions.Alpha)
[static Vector3 ColorToHSV(this Color)](VRageMath.ColorExtensions.ColorToHSV)
[static Vector3 ColorToHSVDX11(this Color)](VRageMath.ColorExtensions.ColorToHSVDX11) Use this for HSV in DX11 Renderer, X = Hue 0..1, Y = Saturation -1..1, Z = Value -1..1
[static Color? FromHtml(string)](VRageMath.ColorExtensions.FromHtml)
[static Color HexToColor(string)](VRageMath.ColorExtensions.HexToColor)
[static Vector4 HexToVector4(string)](VRageMath.ColorExtensions.HexToVector4)
[static Color HSVtoColor(this Vector3)](VRageMath.ColorExtensions.HSVtoColor)
[static float HueDistance(this Color, float)](VRageMath.ColorExtensions.HueDistance)
[static float HueDistance(this Color, Color)](VRageMath.ColorExtensions.HueDistance)
[static uint PackHSVToUint(this Vector3)](VRageMath.ColorExtensions.PackHSVToUint)
[static Vector4 PremultiplyColor(this Vector4)](VRageMath.ColorExtensions.PremultiplyColor)
[static Color Shade(this Color, float)](VRageMath.ColorExtensions.Shade)
[static Vector3 TemperatureToRGB(float)](VRageMath.ColorExtensions.TemperatureToRGB)
[static Color Tint(this Color, float)](VRageMath.ColorExtensions.Tint)
[static Vector3 ToGray(this Vector3)](VRageMath.ColorExtensions.ToGray)
[static Vector4 ToGray(this Vector4)](VRageMath.ColorExtensions.ToGray)
[static Vector4 ToLinearRGB(this Vector4)](VRageMath.ColorExtensions.ToLinearRGB)
[static Vector3 ToLinearRGB(this Vector3)](VRageMath.ColorExtensions.ToLinearRGB)
[static float ToLinearRGBComponent(float)](VRageMath.ColorExtensions.ToLinearRGBComponent)
[static Vector4 ToSRGB(this Vector4)](VRageMath.ColorExtensions.ToSRGB)
[static Vector3 ToSRGB(this Vector3)](VRageMath.ColorExtensions.ToSRGB)
[static float ToSRGBComponent(float)](VRageMath.ColorExtensions.ToSRGBComponent)
[static Vector4 UnmultiplyColor(this Vector4)](VRageMath.ColorExtensions.UnmultiplyColor)
[static Vector3 UnpackHSVFromUint(uint)](VRageMath.ColorExtensions.UnpackHSVFromUint)

Clone this wiki locally