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
$1static Color Alpha(this Color, float)](VRageMath.ColorExtensions.Alpha)
$1static Vector3 ColorToHSV(this Color)](VRageMath.ColorExtensions.ColorToHSV)
$1static 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
$1static Color? FromHtml(string)](VRageMath.ColorExtensions.FromHtml)
$1static Color HexToColor(string)](VRageMath.ColorExtensions.HexToColor)
$1static Vector4 HexToVector4(string)](VRageMath.ColorExtensions.HexToVector4)
$1static Color HSVtoColor(this Vector3)](VRageMath.ColorExtensions.HSVtoColor)
$1static float HueDistance(this Color, float)](VRageMath.ColorExtensions.HueDistance)
$1static float HueDistance(this Color, Color)](VRageMath.ColorExtensions.HueDistance)
$1static uint PackHSVToUint(this Vector3)](VRageMath.ColorExtensions.PackHSVToUint)
$1static Vector4 PremultiplyColor(this Vector4)](VRageMath.ColorExtensions.PremultiplyColor)
$1static Color Shade(this Color, float)](VRageMath.ColorExtensions.Shade)
$1static Vector3 TemperatureToRGB(float)](VRageMath.ColorExtensions.TemperatureToRGB)
$1static Color Tint(this Color, float)](VRageMath.ColorExtensions.Tint)
$1static Vector3 ToGray(this Vector3)](VRageMath.ColorExtensions.ToGray)
$1static Vector4 ToGray(this Vector4)](VRageMath.ColorExtensions.ToGray)
$1static Vector4 ToLinearRGB(this Vector4)](VRageMath.ColorExtensions.ToLinearRGB)
$1static Vector3 ToLinearRGB(this Vector3)](VRageMath.ColorExtensions.ToLinearRGB)
$1static float ToLinearRGBComponent(float)](VRageMath.ColorExtensions.ToLinearRGBComponent)
$1static Vector4 ToSRGB(this Vector4)](VRageMath.ColorExtensions.ToSRGB)
$1static Vector3 ToSRGB(this Vector3)](VRageMath.ColorExtensions.ToSRGB)
$1static float ToSRGBComponent(float)](VRageMath.ColorExtensions.ToSRGBComponent)
$1static Vector4 UnmultiplyColor(this Vector4)](VRageMath.ColorExtensions.UnmultiplyColor)
$1static Vector3 UnpackHSVFromUint(uint)](VRageMath.ColorExtensions.UnpackHSVFromUint)

Clone this wiki locally