Color

More information can be found in the Unity API Reference and maybe in the Unity Manual.

Constructors

Constructor

Description

Color()

Color(r, g, b)

Color(r, g, b, a)

Members

Member

Description

a

b

g

gamma

grayscale

linear

maxColorComponent

r

Methods

Method

Description

GetHashCode()

ToString()

ToString(format)

Static members

Member

Description

black

blue

clear

cyan

gray

green

grey

magenta

red

white

yellow

Details

class Color
Color Color(float r, float g, float b, float a)
Color Color(float r, float g, float b)
Color Color()
float a
float b
float g
const Color gamma
const float grayscale
const Color linear
const float maxColorComponent
float r
int GetHashCode()
string ToString()
string ToString(string format)
static const Color black
static const Color blue
static const Color clear
static const Color cyan
static const Color gray
static const Color green
static const Color grey
static const Color magenta
static const Color red
static const Color white
static const Color yellow
static Color HSVToRGB(float H, float S, float V)
static Color HSVToRGB(float H, float S, float V, bool hdr)
static Color Lerp(Color a, Color b, float t)
static Color LerpUnclamped(Color a, Color b, float t)
static void RGBToHSV(Color rgbColor, float H, float S, float V)
static Color operator-(Color a, Color b)
static bool operator!=(Color lhs, Color rhs)
static Color operator*(Color a, Color b)
static Color operator*(Color a, float b)
static Color operator*(float b, Color a)
static Color operator/(Color a, float b)
static Color operator+(Color a, Color b)
static bool operator==(Color lhs, Color rhs)