C# Class Nez.ColorExt

Mostra file Open project: prime31/Nez Class Usage Examples

Public Methods

Method Description
add ( this color, Color second ) : Color
grayscale ( this color ) : Color
hexToByte ( char c ) : byte
hexToColor ( int hex ) : Color
hexToColor ( string hex ) : Color
invert ( this color ) : Color
lerp ( Color from, Color to, float t ) : Color

linearly interpolates Color from - to

lerp ( Color &from, Color &to, Color &result, float t ) : void

linearly interpolates Color from - to

multiply ( this self, Color second ) : Color
subtract ( this color, Color second ) : Color

first - second

Method Details

add() public static method

public static add ( this color, Color second ) : Color
color this
second Color
return Color

grayscale() static public method

static public grayscale ( this color ) : Color
color this
return Color

hexToByte() static public method

static public hexToByte ( char c ) : byte
c char
return byte

hexToColor() public static method

public static hexToColor ( int hex ) : Color
hex int
return Color

hexToColor() static public method

static public hexToColor ( string hex ) : Color
hex string
return Color

invert() static public method

static public invert ( this color ) : Color
color this
return Color

lerp() public static method

linearly interpolates Color from - to
public static lerp ( Color from, Color to, float t ) : Color
from Color From.
to Color To.
t float T.
return Color

lerp() public static method

linearly interpolates Color from - to
public static lerp ( Color &from, Color &to, Color &result, float t ) : void
from Color From.
to Color To.
result Color
t float T.
return void

multiply() public static method

public static multiply ( this self, Color second ) : Color
self this
second Color
return Color

subtract() public static method

first - second
public static subtract ( this color, Color second ) : Color
color this
second Color Second.
return Color