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.cs2 行定义.

构造及析构函数说明

◆ Color() [1/12]

Engine.Color.Color ( uint packedValue)

在文件 Color.cs102 行定义.

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

◆ Color() [2/12]

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

在文件 Color.cs104 行定义.

◆ Color() [3/12]

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

在文件 Color.cs106 行定义.

◆ Color() [4/12]

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

在文件 Color.cs108 行定义.

◆ Color() [5/12]

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

在文件 Color.cs115 行定义.

◆ Color() [6/12]

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

在文件 Color.cs117 行定义.

◆ Color() [7/12]

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

在文件 Color.cs124 行定义.

◆ Color() [8/12]

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

在文件 Color.cs131 行定义.

函数调用图:

◆ Color() [9/12]

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

在文件 Color.cs136 行定义.

函数调用图:

◆ Color() [10/12]

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

在文件 Color.cs138 行定义.

函数调用图:

◆ Color() [11/12]

Engine.Color.Color ( Vector4 rgba)

在文件 Color.cs140 行定义.

◆ Color() [12/12]

Engine.Color.Color ( Vector3 rgb)

在文件 Color.cs142 行定义.

成员函数说明

◆ Equals() [1/2]

bool Engine.Color.Equals ( Color other)

在文件 Color.cs160 行定义.

函数调用图:

◆ Equals() [2/2]

override bool Engine.Color.Equals ( object obj)

在文件 Color.cs156 行定义.

函数调用图:

◆ GetHashCode()

override int Engine.Color.GetHashCode ( )

在文件 Color.cs154 行定义.

◆ HsvToRgb()

Vector3 Engine.Color.HsvToRgb ( Vector3 hsv)
static

在文件 Color.cs227 行定义.

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

◆ Lerp()

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

在文件 Color.cs162 行定义.

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

◆ LerpNotSaturated()

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

在文件 Color.cs169 行定义.

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

◆ MultiplyAlphaOnly()

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

在文件 Color.cs180 行定义.

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

◆ MultiplyAlphaOnlyNotSaturated()

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

在文件 Color.cs182 行定义.

函数调用图:

◆ MultiplyColorOnly()

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

在文件 Color.cs184 行定义.

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

◆ MultiplyColorOnlyNotSaturated() [1/2]

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

在文件 Color.cs191 行定义.

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

◆ MultiplyColorOnlyNotSaturated() [2/2]

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

在文件 Color.cs193 行定义.

函数调用图:

◆ MultiplyNotSaturated() [1/2]

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

在文件 Color.cs195 行定义.

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

◆ MultiplyNotSaturated() [2/2]

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

在文件 Color.cs197 行定义.

函数调用图:

◆ operator Color() [1/5]

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

在文件 Color.cs144 行定义.

◆ operator Color() [2/5]

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

在文件 Color.cs146 行定义.

◆ operator Color() [3/5]

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

在文件 Color.cs152 行定义.

◆ operator Color() [4/5]

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

在文件 Color.cs148 行定义.

◆ operator Color() [5/5]

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

在文件 Color.cs150 行定义.

◆ operator!=()

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

在文件 Color.cs277 行定义.

函数调用图:

◆ operator*() [1/5]

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

在文件 Color.cs279 行定义.

函数调用图:

◆ operator*() [2/5]

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

在文件 Color.cs303 行定义.

函数调用图:

◆ operator*() [3/5]

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

在文件 Color.cs331 行定义.

函数调用图:

◆ operator*() [4/5]

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

在文件 Color.cs286 行定义.

函数调用图:

◆ operator*() [5/5]

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

在文件 Color.cs310 行定义.

函数调用图:

◆ operator+()

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

在文件 Color.cs317 行定义.

函数调用图:

◆ operator-()

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

在文件 Color.cs324 行定义.

函数调用图:

◆ operator/()

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

在文件 Color.cs293 行定义.

函数调用图:

◆ operator==()

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

在文件 Color.cs275 行定义.

函数调用图:

◆ PremultiplyAlpha() [1/2]

Color Engine.Color.PremultiplyAlpha ( Color c)
static

在文件 Color.cs176 行定义.

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

◆ PremultiplyAlpha() [2/2]

Vector4 Engine.Color.PremultiplyAlpha ( Vector4 c)
static

在文件 Color.cs178 行定义.

◆ RgbToHsv()

Vector3 Engine.Color.RgbToHsv ( Vector3 rgb)
static

在文件 Color.cs204 行定义.

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

◆ ToString()

override string Engine.Color.ToString ( )

在文件 Color.cs158 行定义.

类成员变量说明

◆ Black

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

在文件 Color.cs7 行定义.

◆ Blue

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

在文件 Color.cs23 行定义.

◆ Brown

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

在文件 Color.cs65 行定义.

◆ Chartreuse

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

在文件 Color.cs57 行定义.

◆ Cyan

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

在文件 Color.cs27 行定义.

◆ DarkBlue

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

在文件 Color.cs35 行定义.

◆ DarkCyan

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

在文件 Color.cs39 行定义.

◆ DarkGray

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

在文件 Color.cs9 行定义.

◆ DarkGreen

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

在文件 Color.cs31 行定义.

◆ DarkMagenta

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

在文件 Color.cs37 行定义.

◆ DarkRed

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

在文件 Color.cs29 行定义.

◆ DarkYellow

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

在文件 Color.cs33 行定义.

◆ Gray

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

在文件 Color.cs11 行定义.

◆ Green

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

在文件 Color.cs19 行定义.

◆ Indigo

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

在文件 Color.cs71 行定义.

◆ InkBlue

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

在文件 Color.cs75 行定义.

◆ LightBlue

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

在文件 Color.cs47 行定义.

◆ LightCyan

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

在文件 Color.cs51 行定义.

◆ LightGray

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

在文件 Color.cs13 行定义.

◆ LightGreen

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

在文件 Color.cs43 行定义.

◆ LightMagenta

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

在文件 Color.cs49 行定义.

◆ LightRed

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

在文件 Color.cs41 行定义.

◆ LightYellow

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

在文件 Color.cs45 行定义.

◆ Magenta

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

在文件 Color.cs25 行定义.

◆ MintGreen

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

在文件 Color.cs61 行定义.

◆ MutedGreen

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

在文件 Color.cs73 行定义.

◆ Olive

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

在文件 Color.cs69 行定义.

◆ Orange

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

在文件 Color.cs53 行定义.

◆ PackedValue

uint Engine.Color.PackedValue

在文件 Color.cs3 行定义.

◆ Pink

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

在文件 Color.cs55 行定义.

◆ Purple

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

在文件 Color.cs67 行定义.

◆ Red

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

在文件 Color.cs17 行定义.

◆ SkyBlue

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

在文件 Color.cs63 行定义.

◆ Transparent

Color Engine.Color.Transparent = default
static

在文件 Color.cs5 行定义.

◆ Violet

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

在文件 Color.cs59 行定义.

◆ White

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

在文件 Color.cs15 行定义.

◆ Yellow

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

在文件 Color.cs21 行定义.

属性说明

◆ A

byte Engine.Color.A
getset

在文件 Color.cs92 行定义.

◆ B

byte Engine.Color.B
getset

在文件 Color.cs87 行定义.

◆ G

byte Engine.Color.G
getset

在文件 Color.cs82 行定义.

◆ R

byte Engine.Color.R
getset

在文件 Color.cs77 行定义.

◆ RGB

Color Engine.Color.RGB
getset

在文件 Color.cs97 行定义.


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