Class Color
어셈블리: Assembly-CSharp.dll
Syntax
[MoonSharpUserData]
public class Color
생성자
Color(int, int, int, int)
Color 생성하기 (RGBA) (0 ~ 255)
선언
public Color(int r, int g, int b, int a)
매개 변수(인자)
타입 |
이름 |
설명 |
int |
r |
빨간색 (Red) (0 ~ 255)
|
int |
g |
초록색 (Green) (0 ~ 255)
|
int |
b |
파란색 (Blue) (0 ~ 255)
|
int |
a |
투명도 (Alpha) (0 ~ 255) (기본값: 255)
|
Color(Color32)
선언
매개 변수(인자)
타입 |
이름 |
설명 |
UnityEngine.Color32 |
c |
|
프로퍼티
a
선언
public int a { get; set; }
프로퍼티 값
b
선언
public int b { get; set; }
프로퍼티 값
black
선언
public static Color black { get; }
프로퍼티 값
blue
선언
public static Color blue { get; }
프로퍼티 값
cyan
선언
public static Color cyan { get; }
프로퍼티 값
g
선언
public int g { get; set; }
프로퍼티 값
green
선언
public static Color green { get; }
프로퍼티 값
magenta
선언
public static Color magenta { get; }
프로퍼티 값
r
선언
public int r { get; set; }
프로퍼티 값
red
선언
public static Color red { get; }
프로퍼티 값
transparent
선언
public static Color transparent { get; }
프로퍼티 값
white
선언
public static Color white { get; }
프로퍼티 값
yellow
선언
public static Color yellow { get; }
프로퍼티 값
함수
__call(object, int, int, int, int)
선언
[MoonSharpUserDataMetamethod("__call")]
public static Color __call(object self, int r, int g, int b, int a)
매개 변수(인자)
타입 |
이름 |
설명 |
object |
self |
|
int |
r |
|
int |
g |
|
int |
b |
|
int |
a |
|
반환
__call(object, int, int, int)
선언
[MoonSharpUserDataMetamethod("__call")]
public static Color __call(object self, int r, int g, int b)
매개 변수(인자)
타입 |
이름 |
설명 |
object |
self |
|
int |
r |
|
int |
g |
|
int |
b |
|
반환
__pairs(Color)
선언
[MoonSharpUserDataMetamethod("__pairs")]
public static DynValue __pairs(Color self)
매개 변수(인자)
반환
타입 |
설명 |
MoonSharp.Interpreter.DynValue |
|
ToColor()
선언
반환
ToScriptColor(string)
선언
public static Color ToScriptColor(string hexString)
매개 변수(인자)
타입 |
이름 |
설명 |
string |
hexString |
|
반환
ToUint(Color)
선언
public uint ToUint(Color c)
매개 변수(인자)
반환
연산자
operator +(Color, Color)
선언
public static Color operator +(Color left, Color right)
매개 변수(인자)
반환
operator ==(Color, Color)
선언
public static bool operator ==(Color left, Color right)
매개 변수(인자)
반환
implicit operator Color(Color)
선언
public static implicit operator Color(Color c)
매개 변수(인자)
반환
implicit operator Color(uint)
선언
public static implicit operator Color(uint value)
매개 변수(인자)
반환
implicit operator Color(Color)
선언
public static implicit operator Color(Color c)
매개 변수(인자)
타입 |
이름 |
설명 |
UnityEngine.Color |
c |
|
반환
operator !=(Color, Color)
선언
public static bool operator !=(Color left, Color right)
매개 변수(인자)
반환
operator *(Color, Color)
선언
public static Color operator *(Color left, Color right)
매개 변수(인자)
반환
operator -(Color, Color)
선언
public static Color operator -(Color left, Color right)
매개 변수(인자)
반환