C# 클래스 Cubia.Color

A color, as stolen from one of my previous projects. Represents a color including alpha. Contains methods for color manipulation.
파일 보기 프로젝트 열기: dzamkov/MineViewer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
A double
B double
G double
R double

공개 메소드들

메소드 설명
HLSA ( double H, double L, double S, double A ) : Color

Creates a color from its HLSA representation.

Mix ( Color A, Color B, double Amount ) : Color

Mixes two colors based on the specified amount. If the amount is 0.0, the resulting color will be A. If the amount is 1.0, the resulting color will be B. Values in between will cause the color to be interpolated.

RGB ( double R, double G, double B ) : Color

Creates a color from its RGB reprsentation with a completely opaque alpha.

RGBA ( double R, double G, double B, double A ) : Color

Creates a color from its RGBA representation. Values should be between 0.0 and 1.0.

메소드 상세

HLSA() 공개 정적인 메소드

Creates a color from its HLSA representation.
public static HLSA ( double H, double L, double S, double A ) : Color
H double Hue in degrees.
L double Lumination between 0.0 and 1.0.
S double Saturation between 0.0 and 1.0.
A double Alpha between 0.0 and 1.0.
리턴 Color

Mix() 공개 정적인 메소드

Mixes two colors based on the specified amount. If the amount is 0.0, the resulting color will be A. If the amount is 1.0, the resulting color will be B. Values in between will cause the color to be interpolated.
public static Mix ( Color A, Color B, double Amount ) : Color
A Color
B Color
Amount double
리턴 Color

RGB() 공개 정적인 메소드

Creates a color from its RGB reprsentation with a completely opaque alpha.
public static RGB ( double R, double G, double B ) : Color
R double
G double
B double
리턴 Color

RGBA() 공개 정적인 메소드

Creates a color from its RGBA representation. Values should be between 0.0 and 1.0.
public static RGBA ( double R, double G, double B, double A ) : Color
R double
G double
B double
A double
리턴 Color

프로퍼티 상세

A 공개적으로 프로퍼티

public double A
리턴 double

B 공개적으로 프로퍼티

public double B
리턴 double

G 공개적으로 프로퍼티

public double G
리턴 double

R 공개적으로 프로퍼티

public double R
리턴 double