C# 클래스 OpenBveApi.Colors.Color24

Represents a 24-bit color with red, green and blue channels at 8 bits each.
파일 보기 프로젝트 열기: leezer3/OpenBVE 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
B byte
Black Color24
Blue Color24
Cyan Color24
G byte
Green Color24
Magenta Color24
R byte
Red Color24
White Color24
Yellow Color24

공개 메소드들

메소드 설명
Color24 ( byte r, byte g, byte b ) : System

Creates a new color.

CosineInterpolate ( Color24 Color1, Color24 Color2, double mu ) : Color24

Interpolates between two Color24 values using a simple Cosine algorithm

operator ( ) : bool

Checks whether two colors are equal.

메소드 상세

Color24() 공개 메소드

Creates a new color.
public Color24 ( byte r, byte g, byte b ) : System
r byte The red component.
g byte The green component.
b byte The blue component.
리턴 System

CosineInterpolate() 공개 정적인 메소드

Interpolates between two Color24 values using a simple Cosine algorithm
public static CosineInterpolate ( Color24 Color1, Color24 Color2, double mu ) : Color24
Color1 Color24 The first color
Color2 Color24 The second color
mu double The position on the curve of the new color
리턴 Color24

operator() 공개 정적인 메소드

Checks whether two colors are equal.
public static operator ( ) : bool
리턴 bool

프로퍼티 상세

B 공개적으로 프로퍼티

The blue component.
public byte B
리턴 byte

Black 공개적으로 정적으로 프로퍼티

Represents a black color.
public static Color24,OpenBveApi.Colors Black
리턴 Color24

Blue 공개적으로 정적으로 프로퍼티

Represents a blue color.
public static Color24,OpenBveApi.Colors Blue
리턴 Color24

Cyan 공개적으로 정적으로 프로퍼티

Represents a cyan color.
public static Color24,OpenBveApi.Colors Cyan
리턴 Color24

G 공개적으로 프로퍼티

The green component.
public byte G
리턴 byte

Green 공개적으로 정적으로 프로퍼티

Represents a green color.
public static Color24,OpenBveApi.Colors Green
리턴 Color24

Magenta 공개적으로 정적으로 프로퍼티

Represents a magenta color.
public static Color24,OpenBveApi.Colors Magenta
리턴 Color24

R 공개적으로 프로퍼티

The red component.
public byte R
리턴 byte

Red 공개적으로 정적으로 프로퍼티

Represents a red color.
public static Color24,OpenBveApi.Colors Red
리턴 Color24

White 공개적으로 정적으로 프로퍼티

Represents a white color.
public static Color24,OpenBveApi.Colors White
리턴 Color24

Yellow 공개적으로 정적으로 프로퍼티

Represents a yellow color.
public static Color24,OpenBveApi.Colors Yellow
리턴 Color24