Namespace: | Sirenix.OdinInspector.Editor.Internal |
Assembly: | Sirenix.OdinInspector.Editor |
public struct FancyColor : IFormattable, IEquatable<FancyColor>
public FancyColor(float value, float a = 1F)
System.Single | value | |
System.Single | a |
public FancyColor(float r, float g, float b, float a = 1F)
System.Single | r | |
System.Single | g | |
System.Single | b | |
System.Single | a |
public float A
public float B
public static readonly Stack<FancyColor.BlendLayer> BlendStack
public const float EQUATABLE_THRESHOLD = 0.00196078443F
public float G
public float R
public static FancyColor Black { get; }
public static FancyColor Blue { get; }
public byte ByteA { get; }
public byte ByteB { get; }
public byte ByteG { get; }
public byte ByteR { get; }
public static FancyColor Clear { get; }
public static FancyColor Cyan { get; }
public static FancyColor Gray { get; }
public static FancyColor Green { get; }
public FancyColor Inverse { get; }
public float InverseA { get; }
public float InverseB { get; }
public float InverseG { get; }
public float InverseR { get; }
public float this[int index] { get; set; }
System.Int32 | index |
public static FancyColor Magenta { get; }
public static FancyColor Red { get; }
public static FancyColor White { get; }
public static FancyColor Yellow { get; }
public FancyColor BakeBlends()
FancyColor |
public FancyColor Blend(FancyColor top, FancyColor.BlendMode blendMode)
FancyColor | top | |
FancyColor.BlendMode | blendMode |
FancyColor |
public void Clamp()
public static FancyColor Create32(byte value, byte a = 255)
System.Byte | value | |
System.Byte | a |
FancyColor |
public static FancyColor Create32(byte r, byte g, byte b, byte a = 255)
System.Byte | r | |
System.Byte | g | |
System.Byte | b | |
System.Byte | a |
FancyColor |
public static FancyColor CreateHex(int rgb, float a = 1F)
System.Int32 | rgb | |
System.Single | a |
FancyColor |
public static FancyColor CreateHtmlString(string htmlHex)
System.String | htmlHex |
FancyColor |
public void Deconstruct(out float r, out float g, out float b)
System.Single | r | |
System.Single | g | |
System.Single | b |
public void Deconstruct(out float r, out float g, out float b, out float a)
System.Single | r | |
System.Single | g | |
System.Single | b | |
System.Single | a |
public override bool Equals(object obj)
System.Object | obj |
System.Boolean |
public bool Equals(float value, int index)
System.Single | value | |
System.Int32 | index |
System.Boolean |
public bool EqualsA(float value)
System.Single | value |
System.Boolean |
public bool EqualsB(float value)
System.Single | value |
System.Boolean |
public bool EqualsG(float value)
System.Single | value |
System.Boolean |
public bool EqualsR(float value)
System.Single | value |
System.Boolean |
public override int GetHashCode()
System.Int32 |
public FancyColor InvertLuminosity()
FancyColor |
public FancyColor Lerp(FancyColor target, float t)
FancyColor | target | |
System.Single | t |
FancyColor |
public float Luminosity(bool includeAlpha = true)
System.Boolean | includeAlpha |
System.Single |
public static void PopBlend()
public static void PushBlend(FancyColor color, FancyColor.BlendMode blendMode)
FancyColor | color | |
FancyColor.BlendMode | blendMode |
public string ToHexCode()
System.String |
public string ToString(string format, IFormatProvider formatProvider)
System.String | format | |
System.IFormatProvider | formatProvider |
System.String |
public static FancyColor operator +(FancyColor self, FancyColor other)
FancyColor | self | |
FancyColor | other |
FancyColor |
public static bool operator ==(FancyColor self, FancyColor other)
FancyColor | self | |
FancyColor | other |
System.Boolean |
public static bool operator>(FancyColor self, float value)
FancyColor | self | |
System.Single | value |
System.Boolean |
public static implicit operator Color(FancyColor fancyColor)
FancyColor | fancyColor |
UnityEngine.Color |
public static implicit operator Color32(FancyColor fancyColor)
FancyColor | fancyColor |
UnityEngine.Color32 |
public static implicit operator FancyColor(Color color)
UnityEngine.Color | color |
FancyColor |
public static implicit operator FancyColor(Color32 color32)
UnityEngine.Color32 | color32 |
FancyColor |
public static bool operator !=(FancyColor self, FancyColor other)
FancyColor | self | |
FancyColor | other |
System.Boolean |
public static bool operator <(FancyColor self, float value)
FancyColor | self | |
System.Single | value |
System.Boolean |
public static FancyColor operator *(FancyColor self, FancyColor other)
FancyColor | self | |
FancyColor | other |
FancyColor |
public static FancyColor operator *(FancyColor self, float value)
FancyColor | self | |
System.Single | value |
FancyColor |
public static FancyColor operator *(float value, FancyColor self)
System.Single | value | |
FancyColor | self |
FancyColor |
public static FancyColor operator -(FancyColor self, FancyColor other)
FancyColor | self | |
FancyColor | other |
FancyColor |