Color
struct in UnityEngine · UnityEngine.CoreModule
In Tassix
RGBA color with float components. Verified in conformance/recordings/value_types.jsonl.
Constructors 1
Fields 4
float afloat bfloat gfloat rProperties 162
static Color aliceBlue { get; }static Color antiqueWhite { get; }static Color aquamarine { get; }static Color azure { get; }static Color beige { get; }static Color bisque { get; }static Color black { get; }static Color blanchedAlmond { get; }static Color blue { get; }static Color blueViolet { get; }static Color brown { get; }static Color burlywood { get; }static Color cadetBlue { get; }static Color chartreuse { get; }static Color chocolate { get; }static Color clear { get; }static Color coral { get; }static Color cornflowerBlue { get; }static Color cornsilk { get; }static Color crimson { get; }static Color cyan { get; }static Color darkBlue { get; }static Color darkCyan { get; }static Color darkGoldenRod { get; }static Color darkGray { get; }static Color darkGreen { get; }static Color darkKhaki { get; }static Color darkMagenta { get; }static Color darkOliveGreen { get; }static Color darkOrange { get; }static Color darkOrchid { get; }static Color darkRed { get; }static Color darkSalmon { get; }static Color darkSeaGreen { get; }static Color darkSlateBlue { get; }static Color darkSlateGray { get; }static Color darkTurquoise { get; }static Color darkViolet { get; }static Color deepPink { get; }static Color deepSkyBlue { get; }static Color dimGray { get; }static Color dodgerBlue { get; }static Color firebrick { get; }static Color floralWhite { get; }static Color forestGreen { get; }static Color gainsboro { get; }Color gamma { get; }Linear to sRGB, per channel (alpha unchanged).
static Color ghostWhite { get; }static Color gold { get; }static Color goldenRod { get; }static Color gray { get; }static Color gray1 { get; }static Color gray2 { get; }static Color gray3 { get; }static Color gray4 { get; }static Color gray5 { get; }static Color gray6 { get; }static Color gray7 { get; }static Color gray8 { get; }static Color gray9 { get; }float grayscale { get; }Rec. 601 luma.
static Color green { get; }static Color greenYellow { get; }static Color grey { get; }static Color honeydew { get; }static Color hotPink { get; }static Color indianRed { get; }static Color indigo { get; }static Color ivory { get; }static Color khaki { get; }static Color lavender { get; }static Color lavenderBlush { get; }static Color lawnGreen { get; }static Color lemonChiffon { get; }static Color lightBlue { get; }static Color lightCoral { get; }static Color lightCyan { get; }static Color lightGoldenRod { get; }static Color lightGoldenRodYellow { get; }static Color lightGray { get; }static Color lightGreen { get; }static Color lightPink { get; }static Color lightSalmon { get; }static Color lightSeaGreen { get; }static Color lightSkyBlue { get; }static Color lightSlateBlue { get; }static Color lightSlateGray { get; }static Color lightSteelBlue { get; }static Color lightYellow { get; }static Color limeGreen { get; }Color linear { get; }sRGB to linear, per channel (alpha unchanged).
static Color linen { get; }static Color magenta { get; }static Color maroon { get; }float maxColorComponent { get; }static Color mediumAquamarine { get; }static Color mediumBlue { get; }static Color mediumOrchid { get; }static Color mediumPurple { get; }static Color mediumSeaGreen { get; }static Color mediumSlateBlue { get; }static Color mediumSpringGreen { get; }static Color mediumTurquoise { get; }static Color mediumVioletRed { get; }static Color midnightBlue { get; }static Color mintCream { get; }static Color mistyRose { get; }static Color moccasin { get; }static Color oldLace { get; }static Color olive { get; }static Color oliveDrab { get; }static Color orange { get; }static Color orangeRed { get; }static Color orchid { get; }static Color paleGoldenRod { get; }static Color paleGreen { get; }static Color paleTurquoise { get; }static Color paleVioletRed { get; }static Color papayaWhip { get; }static Color peachPuff { get; }static Color peru { get; }static Color pink { get; }static Color plum { get; }static Color powderBlue { get; }static Color purple { get; }static Color rebeccaPurple { get; }static Color red { get; }static Color rosyBrown { get; }static Color royalBlue { get; }static Color saddleBrown { get; }static Color salmon { get; }static Color sandyBrown { get; }static Color seaGreen { get; }static Color seashell { get; }static Color sienna { get; }static Color silver { get; }static Color skyBlue { get; }static Color slateBlue { get; }static Color slateGray { get; }static Color snow { get; }static Color softBlue { get; }static Color softGreen { get; }static Color softRed { get; }static Color softYellow { get; }static Color springGreen { get; }static Color steelBlue { get; }static Color tan { get; }static Color teal { get; }float this[int index] { get; set; }static Color thistle { get; }static Color tomato { get; }static Color turquoise { get; }static Color violet { get; }static Color violetRed { get; }static Color wheat { get; }static Color white { get; }static Color whiteSmoke { get; }static Color yellow { get; }static Color yellowGreen { get; }static Color yellowNice { get; }Methods 7
int GetHashCode()static Color HSVToRGB(float H, float S, float V)static Color HSVToRGB(float H, float S, float V, bool hdr)HSV to RGB; with hdr false, channels are clamped to [0, 1].
static Color LerpUnclamped(Color a, Color b, float t)static Color LerpUnclamped(in Color a, in Color b, float t)static void RGBToHSV(Color rgbColor, out float H, out float S, out float V)static void RGBToHSV(in Color rgbColor, out float H, out float S, out float V)string ToString()string ToString(string? format)string ToString(string? format, IFormatProvider? formatProvider)Operators 7
Checked against Unity
Conformance scenarios that exercise it, recorded in Unity and compared event by event.