Table of Contents

Class Color4Helper

Namespace
HelixToolkit.Maths
Assembly
HelixToolkit.Maths.dll
public static class Color4Helper
Inheritance
Color4Helper
Inherited Members

Methods

ChangeIntensity(Color4, float)

public static Color4 ChangeIntensity(this Color4 c, float intensity)

Parameters

c Color4
intensity float

Returns

Color4

Encode2FloatToFloat(float, float)

public static float Encode2FloatToFloat(float a, float b)

Parameters

a float
b float

Returns

float

EncodeToFloat(Color4)

public static float EncodeToFloat(this Color4 color)

Parameters

color Color4

Returns

float

FromArgb(int)

Froms the ARGB int.

public static Color FromArgb(this int argb)

Parameters

argb int

The ARGB.

Returns

Color

FromArgb(int, int, int)

Froms the RGB.

public static Color FromArgb(int r, int g, int b)

Parameters

r int

The r.

g int

The g.

b int

The b.

Returns

Color

FromArgb(int, int, int, int)

Froms the ARGB.

public static Color FromArgb(int a, int r, int g, int b)

Parameters

a int

a.

r int

The r.

g int

The g.

b int

The b.

Returns

Color

Normalized(Color4)

public static Color4 Normalized(this Color4 color)

Parameters

color Color4

Returns

Color4

ToArgb(Color)

public static int ToArgb(this Color color)

Parameters

color Color

Returns

int

ToColor4(Color3, float)

public static Color4 ToColor4(this Color3 color, float alpha = 0)

Parameters

color Color3
alpha float

Returns

Color4

ToColor4(string, CultureInfo?)

Tries the prase.

public static Color4 ToColor4(this string color, CultureInfo? culture = null)

Parameters

color string

The color.

culture CultureInfo

The culture.

Returns

Color4

Exceptions

ArgumentException

ToVector3(Color3)

public static Vector3 ToVector3(this Color3 color)

Parameters

color Color3

Returns

Vector3

ToVector4(Color4)

public static Vector4 ToVector4(this Color4 color)

Parameters

color Color4

Returns

Vector4