C# Class CrossUI.Color

Show file Open project: pragmatrix/CrossUI Class Usage Examples

Public Properties

Property Type Description
Alpha double
Blue double
Green double
Red double

Public Methods

Method Description
Color ( double red, double green, double blue, double alpha = 1 ) : CrossUI.Toolbox
Equals ( Color other ) : bool
Equals ( object obj ) : bool
FromBytes ( byte r, byte g, byte b, byte a ) : Color
GetHashCode ( ) : int
ToBytes ( ) : byte[]
ToString ( ) : string
operator ( ) : bool

Private Methods

Method Description
toByte ( double v ) : byte

Method Details

Color() public method

public Color ( double red, double green, double blue, double alpha = 1 ) : CrossUI.Toolbox
red double
green double
blue double
alpha double
return CrossUI.Toolbox

Equals() public method

public Equals ( Color other ) : bool
other Color
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

FromBytes() public static method

public static FromBytes ( byte r, byte g, byte b, byte a ) : Color
r byte
g byte
b byte
a byte
return Color

GetHashCode() public method

public GetHashCode ( ) : int
return int

ToBytes() public method

public ToBytes ( ) : byte[]
return byte[]

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : bool
return bool

Property Details

Alpha public property

public double Alpha
return double

Blue public property

public double Blue
return double

Green public property

public double Green
return double

Red public property

public double Red
return double