Struct Color
Assembly: UnityEngine.dll
Syntax
public struct Color : IEquatable<Color>
Constructors
|
Improve this Doc
View Source
Color(Single, Single, Single)
Declaration
public Color(float r, float g, float b)
Parameters
|
Improve this Doc
View Source
Color(Single, Single, Single, Single)
Declaration
public Color(float r, float g, float b, float a)
Parameters
Fields
|
Improve this Doc
View Source
a
Declaration
Field Value
|
Improve this Doc
View Source
b
Declaration
Field Value
|
Improve this Doc
View Source
g
Declaration
Field Value
|
Improve this Doc
View Source
r
Declaration
Field Value
Properties
|
Improve this Doc
View Source
black
Declaration
public static Color black { get; }
Property Value
|
Improve this Doc
View Source
blue
Declaration
public static Color blue { get; }
Property Value
|
Improve this Doc
View Source
clear
Declaration
public static Color clear { get; }
Property Value
|
Improve this Doc
View Source
cyan
Declaration
public static Color cyan { get; }
Property Value
|
Improve this Doc
View Source
gamma
Declaration
public Color gamma { get; }
Property Value
|
Improve this Doc
View Source
gray
Declaration
public static Color gray { get; }
Property Value
|
Improve this Doc
View Source
grayscale
Declaration
public float grayscale { get; }
Property Value
|
Improve this Doc
View Source
green
Declaration
public static Color green { get; }
Property Value
|
Improve this Doc
View Source
grey
Declaration
public static Color grey { get; }
Property Value
|
Improve this Doc
View Source
Item[Int32]
Declaration
public float this[int index] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
index |
|
Property Value
|
Improve this Doc
View Source
linear
Declaration
public Color linear { get; }
Property Value
|
Improve this Doc
View Source
magenta
Declaration
public static Color magenta { get; }
Property Value
|
Improve this Doc
View Source
maxColorComponent
Declaration
public float maxColorComponent { get; }
Property Value
|
Improve this Doc
View Source
red
Declaration
public static Color red { get; }
Property Value
|
Improve this Doc
View Source
white
Declaration
public static Color white { get; }
Property Value
|
Improve this Doc
View Source
yellow
Declaration
public static Color yellow { get; }
Property Value
Methods
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
Object |
other |
|
Returns
Overrides
|
Improve this Doc
View Source
Equals(Color)
Declaration
public bool Equals(Color other)
Parameters
Type |
Name |
Description |
Color |
other |
|
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Improve this Doc
View Source
HSVToRGB(Single, Single, Single)
Declaration
public static Color HSVToRGB(float H, float S, float V)
Parameters
Returns
|
Improve this Doc
View Source
HSVToRGB(Single, Single, Single, Boolean)
Declaration
public static Color HSVToRGB(float H, float S, float V, bool hdr)
Parameters
Returns
|
Improve this Doc
View Source
Lerp(Color, Color, Single)
Declaration
public static Color Lerp(Color a, Color b, float t)
Parameters
Returns
|
Improve this Doc
View Source
LerpUnclamped(Color, Color, Single)
Declaration
public static Color LerpUnclamped(Color a, Color b, float t)
Parameters
Returns
|
Improve this Doc
View Source
RGBToHSV(Color, out Single, out Single, out Single)
Declaration
public static void RGBToHSV(Color rgbColor, out float H, out float S, out float V)
Parameters
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
|
Improve this Doc
View Source
ToString(String)
Declaration
public string ToString(string format)
Parameters
Type |
Name |
Description |
String |
format |
|
Returns
Operators
|
Improve this Doc
View Source
Addition(Color, Color)
Declaration
public static Color operator +(Color a, Color b)
Parameters
Returns
|
Improve this Doc
View Source
Division(Color, Single)
Declaration
public static Color operator /(Color a, float b)
Parameters
Returns
|
Improve this Doc
View Source
Equality(Color, Color)
Declaration
public static bool operator ==(Color lhs, Color rhs)
Parameters
Returns
|
Improve this Doc
View Source
Implicit(Color to Vector4)
Declaration
public static implicit operator Vector4(Color c)
Parameters
Type |
Name |
Description |
Color |
c |
|
Returns
|
Improve this Doc
View Source
Implicit(Vector4 to Color)
Declaration
public static implicit operator Color(Vector4 v)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(Color, Color)
Declaration
public static bool operator !=(Color lhs, Color rhs)
Parameters
Returns
|
Improve this Doc
View Source
Multiply(Single, Color)
Declaration
public static Color operator *(float b, Color a)
Parameters
Returns
|
Improve this Doc
View Source
Multiply(Color, Single)
Declaration
public static Color operator *(Color a, float b)
Parameters
Returns
|
Improve this Doc
View Source
Multiply(Color, Color)
Declaration
public static Color operator *(Color a, Color b)
Parameters
Returns
|
Improve this Doc
View Source
Subtraction(Color, Color)
Declaration
public static Color operator -(Color a, Color b)
Parameters
Returns
Implements
Extension Methods