C# Class Axiom.Core.ColorEx

Afficher le fichier Open project: WolfgangSt/axiom Class Usage Examples

Méthodes publiques

Свойство Type Description
a float
b float
g float
r float

Méthodes publiques

Méthode Description
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

Method Details

Clone() public méthode

Creates a new object that is a copy of the current instance.
public Clone ( ) : ColorEx
Résultat ColorEx

ColorEx() public méthode

Copy constructor.
public ColorEx ( ColorEx other ) : System
other ColorEx The ColorEx instance to copy
Résultat System

ColorEx() public méthode

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.
Résultat System

ColorEx() public méthode

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.
Résultat System

CompareTo() public méthode

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.
Résultat int

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

Override GetHashCode.
Done mainly to quash warnings, no real need for it.
public GetHashCode ( ) : int
Résultat int

Parse_0_255_String() public static méthode

public static Parse_0_255_String ( string parsableText ) : ColorEx
parsableText string
Résultat ColorEx

Saturate() public méthode

Clamps color value to the range [0, 1]
public Saturate ( ) : void
Résultat void

SaturateCopy() public méthode

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

ToABGR() public méthode

Converts this color value to packed ABGR format.
public ToABGR ( ) : int
Résultat int

ToARGB() public méthode

Converts this color value to packed ARBG format.
public ToARGB ( ) : int
Résultat int

ToArrayRGBA() public méthode

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
Résultat void

ToRGBA() public méthode

public ToRGBA ( ) : int
Résultat int

ToString() public méthode

public ToString ( ) : string
Résultat string

To_0_255_String() public méthode

public To_0_255_String ( ) : string
Résultat string

operator() public static méthode

public static operator ( ) : ColorEx
Résultat ColorEx

operator() public static méthode

public static operator ( ) : bool
Résultat bool

Property Details

a public_oe property

Alpha value [0,1].
public float a
Résultat float

b public_oe property

Blue color component [0,1].
public float b
Résultat float

g public_oe property

Green color component [0,1].
public float g
Résultat float

r public_oe property

Red color component [0,1].
public float r
Résultat float