Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRageMath.ColorExtensions

Malware edited this page Dec 25, 2018 · 42 revisions

Index

ColorExtensions Class

private public abstract sealed ColorExtensions
```csharp

**Namespace:** [VRageMath](VRageMath)  
**Assembly:** VRage.Math.dll

### Example

### Remarks

###### Methods

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