This repository has been archived by the owner on Oct 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 125
VRageMath.ColorExtensions
Malware edited this page Dec 25, 2018
·
42 revisions
← Index
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)||
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!