Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Engine.Color
类 Engine.Color 继承关系图:
Engine.Color 的协作图:

Public 成员函数

 Color (uint packedValue)
 Color (byte r, byte g, byte b)
 Color (byte r, byte g, byte b, byte a)
 Color (int r, int g, int b, int a)
 Color (int r, int g, int b)
 Color (float r, float g, float b, float a)
 Color (float r, float g, float b)
 Color (Color rgb, byte a)
 Color (Color rgb, int a)
 Color (Color rgb, float a)
 Color (Vector4 rgba)
 Color (Vector3 rgb)
override int GetHashCode ()
override bool Equals (object obj)
override string ToString ()
bool Equals (Color other)

静态 Public 成员函数

static implicit operator Color ((byte R, byte G, byte B) v)
static implicit operator Color ((byte R, byte G, byte B, byte A) v)
static implicit operator Color ((int R, int G, int B) v)
static implicit operator Color ((int R, int G, int B, int A) v)
static implicit operator Color ((float R, float G, float B, float A) v)
static Color Lerp (Color c1, Color c2, float f)
static Color LerpNotSaturated (Color c1, Color c2, float f)
static Color PremultiplyAlpha (Color c)
static Vector4 PremultiplyAlpha (Vector4 c)
static Color MultiplyAlphaOnly (Color c, float s)
static Color MultiplyAlphaOnlyNotSaturated (Color c, float s)
static Color MultiplyColorOnly (Color c, float s)
static Color MultiplyColorOnlyNotSaturated (Color c, float s)
static Color MultiplyColorOnlyNotSaturated (Color c, Vector3 s)
static Color MultiplyNotSaturated (Color c, float s)
static Color MultiplyNotSaturated (Color c, Vector4 s)
static Vector3 RgbToHsv (Vector3 rgb)
static Vector3 HsvToRgb (Vector3 hsv)
static bool operator== (Color c1, Color c2)
static bool operator!= (Color c1, Color c2)
static Color operator* (Color c, float s)
static Color operator* (float s, Color c)
static Color operator/ (Color c, float s)
static Color operator* (Color c, Vector4 s)
static Color operator* (Vector4 s, Color c)
static Color operator+ (Color c1, Color c2)
static Color operator- (Color c1, Color c2)
static Color operator* (Color c1, Color c2)

Public 属性

uint PackedValue

静态 Public 属性

static Color Transparent = default
static Color Black = new(0, 0, 0, 255)
static Color DarkGray = new(64, 64, 64, 255)
static Color Gray = new(128, 128, 128, 255)
static Color LightGray = new(192, 192, 192, 255)
static Color White = new(255, 255, 255, 255)
static Color Red = new(255, 0, 0, 255)
static Color Green = new(0, 255, 0, 255)
static Color Yellow = new(255, 255, 0, 255)
static Color Blue = new(0, 0, 255, 255)
static Color Magenta = new(255, 0, 255, 255)
static Color Cyan = new(0, 255, 255, 255)
static Color DarkRed = new(128, 0, 0, 255)
static Color DarkGreen = new(0, 128, 0, 255)
static Color DarkYellow = new(128, 128, 0, 255)
static Color DarkBlue = new(0, 0, 128, 255)
static Color DarkMagenta = new(128, 0, 128, 255)
static Color DarkCyan = new(0, 128, 128, 255)
static Color LightRed = new(255, 128, 128, 255)
static Color LightGreen = new(128, 255, 128, 255)
static Color LightYellow = new(255, 255, 128, 255)
static Color LightBlue = new(128, 128, 255, 255)
static Color LightMagenta = new(255, 128, 255, 255)
static Color LightCyan = new(128, 255, 255, 255)
static Color Orange = new(255, 128, 0, 255)
static Color Pink = new(255, 0, 128, 255)
static Color Chartreuse = new(128, 255, 0, 255)
static Color Violet = new(128, 0, 255, 255)
static Color MintGreen = new(0, 255, 128, 255)
static Color SkyBlue = new(0, 128, 255, 255)
static Color Brown = new(128, 64, 0, 255)
static Color Purple = new(128, 0, 64, 255)
static Color Olive = new(64, 128, 0, 255)
static Color Indigo = new(64, 0, 128, 255)
static Color MutedGreen = new(0, 128, 64, 255)
static Color InkBlue = new(0, 64, 128, 255)

属性

byte R [get, set]
byte G [get, set]
byte B [get, set]
byte A [get, set]
Color RGB [get, set]

详细描述

在文件 Color.cs 第 2 行定义.

构造及析构函数说明

◆ Color() [1/12]

Engine.Color.Color ( uint packedValue)

在文件 Color.cs 第 102 行定义.

这是这个函数的调用关系图:

◆ Color() [2/12]

Engine.Color.Color ( byte r,
byte g,
byte b )

在文件 Color.cs 第 104 行定义.

◆ Color() [3/12]

Engine.Color.Color ( byte r,
byte g,
byte b,
byte a )

在文件 Color.cs 第 106 行定义.

◆ Color() [4/12]

Engine.Color.Color ( int r,
int g,
int b,
int a )

在文件 Color.cs 第 108 行定义.

◆ Color() [5/12]

Engine.Color.Color ( int r,
int g,
int b )

在文件 Color.cs 第 115 行定义.

◆ Color() [6/12]

Engine.Color.Color ( float r,
float g,
float b,
float a )

在文件 Color.cs 第 117 行定义.

◆ Color() [7/12]

Engine.Color.Color ( float r,
float g,
float b )

在文件 Color.cs 第 124 行定义.

◆ Color() [8/12]

Engine.Color.Color ( Color rgb,
byte a )

在文件 Color.cs 第 131 行定义.

函数调用图:

◆ Color() [9/12]

Engine.Color.Color ( Color rgb,
int a )

在文件 Color.cs 第 136 行定义.

函数调用图:

◆ Color() [10/12]

Engine.Color.Color ( Color rgb,
float a )

在文件 Color.cs 第 138 行定义.

函数调用图:

◆ Color() [11/12]

Engine.Color.Color ( Vector4 rgba)

在文件 Color.cs 第 140 行定义.

◆ Color() [12/12]

Engine.Color.Color ( Vector3 rgb)

在文件 Color.cs 第 142 行定义.

成员函数说明

◆ Equals() [1/2]

bool Engine.Color.Equals ( Color other)

在文件 Color.cs 第 160 行定义.

函数调用图:

◆ Equals() [2/2]

override bool Engine.Color.Equals ( object obj)

在文件 Color.cs 第 156 行定义.

函数调用图:

◆ GetHashCode()

override int Engine.Color.GetHashCode ( )

在文件 Color.cs 第 154 行定义.

◆ HsvToRgb()

Vector3 Engine.Color.HsvToRgb ( Vector3 hsv)
static

在文件 Color.cs 第 227 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ Lerp()

Color Engine.Color.Lerp ( Color c1,
Color c2,
float f )
static

在文件 Color.cs 第 162 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ LerpNotSaturated()

Color Engine.Color.LerpNotSaturated ( Color c1,
Color c2,
float f )
static

在文件 Color.cs 第 169 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ MultiplyAlphaOnly()

Color Engine.Color.MultiplyAlphaOnly ( Color c,
float s )
static

在文件 Color.cs 第 180 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ MultiplyAlphaOnlyNotSaturated()

Color Engine.Color.MultiplyAlphaOnlyNotSaturated ( Color c,
float s )
static

在文件 Color.cs 第 182 行定义.

函数调用图:

◆ MultiplyColorOnly()

Color Engine.Color.MultiplyColorOnly ( Color c,
float s )
static

在文件 Color.cs 第 184 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ MultiplyColorOnlyNotSaturated() [1/2]

Color Engine.Color.MultiplyColorOnlyNotSaturated ( Color c,
float s )
static

在文件 Color.cs 第 191 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ MultiplyColorOnlyNotSaturated() [2/2]

Color Engine.Color.MultiplyColorOnlyNotSaturated ( Color c,
Vector3 s )
static

在文件 Color.cs 第 193 行定义.

函数调用图:

◆ MultiplyNotSaturated() [1/2]

Color Engine.Color.MultiplyNotSaturated ( Color c,
float s )
static

在文件 Color.cs 第 195 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ MultiplyNotSaturated() [2/2]

Color Engine.Color.MultiplyNotSaturated ( Color c,
Vector4 s )
static

在文件 Color.cs 第 197 行定义.

函数调用图:

◆ operator Color() [1/5]

implicit Engine.Color.operator Color ( (byte R, byte G, byte B) v)
static

在文件 Color.cs 第 144 行定义.

◆ operator Color() [2/5]

implicit Engine.Color.operator Color ( (byte R, byte G, byte B, byte A) v)
static

在文件 Color.cs 第 146 行定义.

◆ operator Color() [3/5]

implicit Engine.Color.operator Color ( (float R, float G, float B, float A) v)
static

在文件 Color.cs 第 152 行定义.

◆ operator Color() [4/5]

implicit Engine.Color.operator Color ( (int R, int G, int B) v)
static

在文件 Color.cs 第 148 行定义.

◆ operator Color() [5/5]

implicit Engine.Color.operator Color ( (int R, int G, int B, int A) v)
static

在文件 Color.cs 第 150 行定义.

◆ operator!=()

bool Engine.Color.operator!= ( Color c1,
Color c2 )
static

在文件 Color.cs 第 277 行定义.

函数调用图:

◆ operator*() [1/5]

Color Engine.Color.operator* ( Color c,
float s )
static

在文件 Color.cs 第 279 行定义.

函数调用图:

◆ operator*() [2/5]

Color Engine.Color.operator* ( Color c,
Vector4 s )
static

在文件 Color.cs 第 303 行定义.

函数调用图:

◆ operator*() [3/5]

Color Engine.Color.operator* ( Color c1,
Color c2 )
static

在文件 Color.cs 第 331 行定义.

函数调用图:

◆ operator*() [4/5]

Color Engine.Color.operator* ( float s,
Color c )
static

在文件 Color.cs 第 286 行定义.

函数调用图:

◆ operator*() [5/5]

Color Engine.Color.operator* ( Vector4 s,
Color c )
static

在文件 Color.cs 第 310 行定义.

函数调用图:

◆ operator+()

Color Engine.Color.operator+ ( Color c1,
Color c2 )
static

在文件 Color.cs 第 317 行定义.

函数调用图:

◆ operator-()

Color Engine.Color.operator- ( Color c1,
Color c2 )
static

在文件 Color.cs 第 324 行定义.

函数调用图:

◆ operator/()

Color Engine.Color.operator/ ( Color c,
float s )
static

在文件 Color.cs 第 293 行定义.

函数调用图:

◆ operator==()

bool Engine.Color.operator== ( Color c1,
Color c2 )
static

在文件 Color.cs 第 275 行定义.

函数调用图:

◆ PremultiplyAlpha() [1/2]

Color Engine.Color.PremultiplyAlpha ( Color c)
static

在文件 Color.cs 第 176 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ PremultiplyAlpha() [2/2]

Vector4 Engine.Color.PremultiplyAlpha ( Vector4 c)
static

在文件 Color.cs 第 178 行定义.

◆ RgbToHsv()

Vector3 Engine.Color.RgbToHsv ( Vector3 rgb)
static

在文件 Color.cs 第 204 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ ToString()

override string Engine.Color.ToString ( )

在文件 Color.cs 第 158 行定义.

类成员变量说明

◆ Black

Color Engine.Color.Black = new(0, 0, 0, 255)
static

在文件 Color.cs 第 7 行定义.

◆ Blue

Color Engine.Color.Blue = new(0, 0, 255, 255)
static

在文件 Color.cs 第 23 行定义.

◆ Brown

Color Engine.Color.Brown = new(128, 64, 0, 255)
static

在文件 Color.cs 第 65 行定义.

◆ Chartreuse

Color Engine.Color.Chartreuse = new(128, 255, 0, 255)
static

在文件 Color.cs 第 57 行定义.

◆ Cyan

Color Engine.Color.Cyan = new(0, 255, 255, 255)
static

在文件 Color.cs 第 27 行定义.

◆ DarkBlue

Color Engine.Color.DarkBlue = new(0, 0, 128, 255)
static

在文件 Color.cs 第 35 行定义.

◆ DarkCyan

Color Engine.Color.DarkCyan = new(0, 128, 128, 255)
static

在文件 Color.cs 第 39 行定义.

◆ DarkGray

Color Engine.Color.DarkGray = new(64, 64, 64, 255)
static

在文件 Color.cs 第 9 行定义.

◆ DarkGreen

Color Engine.Color.DarkGreen = new(0, 128, 0, 255)
static

在文件 Color.cs 第 31 行定义.

◆ DarkMagenta

Color Engine.Color.DarkMagenta = new(128, 0, 128, 255)
static

在文件 Color.cs 第 37 行定义.

◆ DarkRed

Color Engine.Color.DarkRed = new(128, 0, 0, 255)
static

在文件 Color.cs 第 29 行定义.

◆ DarkYellow

Color Engine.Color.DarkYellow = new(128, 128, 0, 255)
static

在文件 Color.cs 第 33 行定义.

◆ Gray

Color Engine.Color.Gray = new(128, 128, 128, 255)
static

在文件 Color.cs 第 11 行定义.

◆ Green

Color Engine.Color.Green = new(0, 255, 0, 255)
static

在文件 Color.cs 第 19 行定义.

◆ Indigo

Color Engine.Color.Indigo = new(64, 0, 128, 255)
static

在文件 Color.cs 第 71 行定义.

◆ InkBlue

Color Engine.Color.InkBlue = new(0, 64, 128, 255)
static

在文件 Color.cs 第 75 行定义.

◆ LightBlue

Color Engine.Color.LightBlue = new(128, 128, 255, 255)
static

在文件 Color.cs 第 47 行定义.

◆ LightCyan

Color Engine.Color.LightCyan = new(128, 255, 255, 255)
static

在文件 Color.cs 第 51 行定义.

◆ LightGray

Color Engine.Color.LightGray = new(192, 192, 192, 255)
static

在文件 Color.cs 第 13 行定义.

◆ LightGreen

Color Engine.Color.LightGreen = new(128, 255, 128, 255)
static

在文件 Color.cs 第 43 行定义.

◆ LightMagenta

Color Engine.Color.LightMagenta = new(255, 128, 255, 255)
static

在文件 Color.cs 第 49 行定义.

◆ LightRed

Color Engine.Color.LightRed = new(255, 128, 128, 255)
static

在文件 Color.cs 第 41 行定义.

◆ LightYellow

Color Engine.Color.LightYellow = new(255, 255, 128, 255)
static

在文件 Color.cs 第 45 行定义.

◆ Magenta

Color Engine.Color.Magenta = new(255, 0, 255, 255)
static

在文件 Color.cs 第 25 行定义.

◆ MintGreen

Color Engine.Color.MintGreen = new(0, 255, 128, 255)
static

在文件 Color.cs 第 61 行定义.

◆ MutedGreen

Color Engine.Color.MutedGreen = new(0, 128, 64, 255)
static

在文件 Color.cs 第 73 行定义.

◆ Olive

Color Engine.Color.Olive = new(64, 128, 0, 255)
static

在文件 Color.cs 第 69 行定义.

◆ Orange

Color Engine.Color.Orange = new(255, 128, 0, 255)
static

在文件 Color.cs 第 53 行定义.

◆ PackedValue

uint Engine.Color.PackedValue

在文件 Color.cs 第 3 行定义.

◆ Pink

Color Engine.Color.Pink = new(255, 0, 128, 255)
static

在文件 Color.cs 第 55 行定义.

◆ Purple

Color Engine.Color.Purple = new(128, 0, 64, 255)
static

在文件 Color.cs 第 67 行定义.

◆ Red

Color Engine.Color.Red = new(255, 0, 0, 255)
static

在文件 Color.cs 第 17 行定义.

◆ SkyBlue

Color Engine.Color.SkyBlue = new(0, 128, 255, 255)
static

在文件 Color.cs 第 63 行定义.

◆ Transparent

Color Engine.Color.Transparent = default
static

在文件 Color.cs 第 5 行定义.

◆ Violet

Color Engine.Color.Violet = new(128, 0, 255, 255)
static

在文件 Color.cs 第 59 行定义.

◆ White

Color Engine.Color.White = new(255, 255, 255, 255)
static

在文件 Color.cs 第 15 行定义.

◆ Yellow

Color Engine.Color.Yellow = new(255, 255, 0, 255)
static

在文件 Color.cs 第 21 行定义.

属性说明

◆ A

byte Engine.Color.A
getset

在文件 Color.cs 第 92 行定义.

◆ B

byte Engine.Color.B
getset

在文件 Color.cs 第 87 行定义.

◆ G

byte Engine.Color.G
getset

在文件 Color.cs 第 82 行定义.

◆ R

byte Engine.Color.R
getset

在文件 Color.cs 第 77 行定义.

◆ RGB

Color Engine.Color.RGB
getset

在文件 Color.cs 第 97 行定义.


该结构体的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Engine/Engine/Color.cs