C# Class Nexus.Graphics.Colors.Color

Mostra file Open project: tgjones/nexus Class Usage Examples

Public Properties

Property Type Description
A byte
B byte
G byte
R byte

Public Methods

Method Description
Clone ( ) : Color
Color ( byte r, byte g, byte b ) : System
Color ( byte a, byte r, byte g, byte b ) : System
FromArgb ( byte alpha, Color baseColor ) : Color
FromArgb ( byte alpha, byte red, byte green, byte blue ) : Color
FromHexRef ( string hexRef ) : Color
FromNonPremultiplied ( byte r, byte g, byte b, byte a ) : Color
FromRgb ( byte red, byte green, byte blue ) : Color
GetMeanBrightness ( ) : int
Lerp ( float t, Color rgb1, Color rgb2 ) : Color
ToVector3D ( ) : Vector3D
operator ( ) : Color

Method Details

Clone() public method

public Clone ( ) : Color
return Color

Color() public method

public Color ( byte r, byte g, byte b ) : System
r byte
g byte
b byte
return System

Color() public method

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

FromArgb() public static method

public static FromArgb ( byte alpha, Color baseColor ) : Color
alpha byte
baseColor Color
return Color

FromArgb() public static method

public static FromArgb ( byte alpha, byte red, byte green, byte blue ) : Color
alpha byte
red byte
green byte
blue byte
return Color

FromHexRef() public static method

public static FromHexRef ( string hexRef ) : Color
hexRef string
return Color

FromNonPremultiplied() public static method

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

FromRgb() public static method

public static FromRgb ( byte red, byte green, byte blue ) : Color
red byte
green byte
blue byte
return Color

GetMeanBrightness() public method

public GetMeanBrightness ( ) : int
return int

Lerp() public static method

public static Lerp ( float t, Color rgb1, Color rgb2 ) : Color
t float
rgb1 Color
rgb2 Color
return Color

ToVector3D() public method

public ToVector3D ( ) : Vector3D
return Vector3D

operator() public static method

public static operator ( ) : Color
return Color

Property Details

A public_oe property

public byte A
return byte

B public_oe property

public byte B
return byte

G public_oe property

public byte G
return byte

R public_oe property

public byte R
return byte