C# 클래스 Axiom.Core.ColorEx

파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
a float
b float
g float
r float

공개 메소드들

메소드 설명
Clone ( ) : ColorEx

Creates a new object that is a copy of the current instance.

ColorEx ( ColorEx other ) : System

Copy constructor.

ColorEx ( float r, float g, float b ) : System

Constructor taking RGB values

ColorEx ( float a, float r, float g, float b ) : System

Constructor taking all component values.

CompareTo ( object obj ) : int

Used to compare 2 ColorEx objects for equality.

Equals ( object obj ) : bool
GetHashCode ( ) : int

Override GetHashCode.

Done mainly to quash warnings, no real need for it.

Parse_0_255_String ( string parsableText ) : ColorEx
Saturate ( ) : void

Clamps color value to the range [0, 1]

SaturateCopy ( ) : ColorEx

Clamps color value to the range [0, 1] in a copy

ToABGR ( ) : int

Converts this color value to packed ABGR format.

ToARGB ( ) : int

Converts this color value to packed ARBG format.

ToArrayRGBA ( float vals ) : void

Populates the color components in a 4 elements array in RGBA order.

Primarily used to help in OpenGL.

ToRGBA ( ) : int
ToString ( ) : string
To_0_255_String ( ) : string
operator ( ) : ColorEx
operator ( ) : bool

메소드 상세

Clone() 공개 메소드

Creates a new object that is a copy of the current instance.
public Clone ( ) : ColorEx
리턴 ColorEx

ColorEx() 공개 메소드

Copy constructor.
public ColorEx ( ColorEx other ) : System
other ColorEx The ColorEx instance to copy
리턴 System

ColorEx() 공개 메소드

Constructor taking RGB values
public ColorEx ( float r, float g, float b ) : System
r float Red color component.
g float Green color component.
b float Blue color component.
리턴 System

ColorEx() 공개 메소드

Constructor taking all component values.
public ColorEx ( float a, float r, float g, float b ) : System
a float Alpha value.
r float Red color component.
g float Green color component.
b float Blue color component.
리턴 System

CompareTo() 공개 메소드

Used to compare 2 ColorEx objects for equality.
public CompareTo ( object obj ) : int
obj object An instance of a ColorEx object to compare to this instance.
리턴 int

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

GetHashCode() 공개 메소드

Override GetHashCode.
Done mainly to quash warnings, no real need for it.
public GetHashCode ( ) : int
리턴 int

Parse_0_255_String() 공개 정적인 메소드

public static Parse_0_255_String ( string parsableText ) : ColorEx
parsableText string
리턴 ColorEx

Saturate() 공개 메소드

Clamps color value to the range [0, 1]
public Saturate ( ) : void
리턴 void

SaturateCopy() 공개 메소드

Clamps color value to the range [0, 1] in a copy
public SaturateCopy ( ) : ColorEx
리턴 ColorEx

ToABGR() 공개 메소드

Converts this color value to packed ABGR format.
public ToABGR ( ) : int
리턴 int

ToARGB() 공개 메소드

Converts this color value to packed ARBG format.
public ToARGB ( ) : int
리턴 int

ToArrayRGBA() 공개 메소드

Populates the color components in a 4 elements array in RGBA order.
Primarily used to help in OpenGL.
public ToArrayRGBA ( float vals ) : void
vals float
리턴 void

ToRGBA() 공개 메소드

public ToRGBA ( ) : int
리턴 int

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

To_0_255_String() 공개 메소드

public To_0_255_String ( ) : string
리턴 string

operator() 공개 정적인 메소드

public static operator ( ) : ColorEx
리턴 ColorEx

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool

프로퍼티 상세

a 공개적으로 프로퍼티

Alpha value [0,1].
public float a
리턴 float

b 공개적으로 프로퍼티

Blue color component [0,1].
public float b
리턴 float

g 공개적으로 프로퍼티

Green color component [0,1].
public float g
리턴 float

r 공개적으로 프로퍼티

Red color component [0,1].
public float r
리턴 float