MuGameFramework  1.0
MuGameFramework is a 2D game framework built upon C# and SFML
 All Classes Namespaces Files Functions Variables Enumerations Properties
MuGameFramework.Graphics.Color Struct Reference

Represents an RGBA color object More...

Public Member Functions

 Color (byte r, byte g, byte b, byte alpha)
 Create an instance of the Color object
override bool Equals (object obj)
 Compare a Color with this for equality
override int GetHashCode ()
 Get the hash code for this object
override string ToString ()
 Print out the values of a Color as a string

Static Public Member Functions

static implicit operator string (Color value)
 Print out the values of a Color as a string
static bool operator== (Color a, Color b)
 Compare two Colors for equality
static bool operator!= (Color a, Color b)
 Compare two Colors for inequality

Public Attributes

byte R
 Red value of this Color object
byte G
 Green value of this Color object
byte B
 Blue value of this Color object
byte A
 Alpha value of this Color object

Detailed Description

Represents an RGBA color object

Constructor & Destructor Documentation

MuGameFramework.Graphics.Color.Color ( byte  r,
byte  g,
byte  b,
byte  alpha 
)

Create an instance of the Color object

Parameters
rRed color (between 0 and 255)
gGreen color (between 0 and 255)
bBlue color (between 0 and 255)
alphaAlpha value of this color

Member Function Documentation

override bool MuGameFramework.Graphics.Color.Equals ( object  obj)

Compare a Color with this for equality

Parameters
objColor to compare
Returns
Result of comparison
override int MuGameFramework.Graphics.Color.GetHashCode ( )

Get the hash code for this object

Returns
The hash code for this object
static implicit MuGameFramework.Graphics.Color.operator string ( Color  value)
static

Print out the values of a Color as a string

Parameters
valueColor to print out
Returns
String of thus Color
static bool MuGameFramework.Graphics.Color.operator!= ( Color  a,
Color  b 
)
static

Compare two Colors for inequality

Parameters
aColor A to check
bColor B to check
Returns
Result of comparison
static bool MuGameFramework.Graphics.Color.operator== ( Color  a,
Color  b 
)
static

Compare two Colors for equality

Parameters
aColor A to check
bColor B to check
Returns
Result of comparison
override string MuGameFramework.Graphics.Color.ToString ( )

Print out the values of a Color as a string

Returns
String of thus Vector2

Member Data Documentation

byte MuGameFramework.Graphics.Color.A

Alpha value of this Color object

byte MuGameFramework.Graphics.Color.B

Blue value of this Color object

byte MuGameFramework.Graphics.Color.G

Green value of this Color object

byte MuGameFramework.Graphics.Color.R

Red value of this Color object


The documentation for this struct was generated from the following file: