Struct Colorf
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct Colorf : IComparable<Colorf>, IEquatable<Colorf>
Constructors
Colorf(Colorf)
Declaration
public Colorf(Colorf copy)
Parameters
Type |
Name |
Description |
Colorf |
copy |
|
Colorf(Colorf, Single)
Declaration
public Colorf(Colorf copy, float newAlpha)
Parameters
Colorf(Int32, Int32, Int32, Int32)
Declaration
public Colorf(int r, int g, int b, int a = 255)
Parameters
Colorf(Single, Single)
Declaration
public Colorf(float greylevel, float a = 1F)
Parameters
Colorf(Single, Single, Single, Single)
Declaration
public Colorf(float r, float g, float b, float a = 1F)
Parameters
Colorf(Single[])
Declaration
public Colorf(float[] v2)
Parameters
Type |
Name |
Description |
Single[] |
v2 |
|
Fields
a
Declaration
Field Value
b
Declaration
Field Value
Black
Declaration
public static readonly Colorf Black
Field Value
Blue
Declaration
public static readonly Colorf Blue
Field Value
Declaration
public static readonly Colorf BlueMetal
Field Value
CornflowerBlue
Declaration
public static readonly Colorf CornflowerBlue
Field Value
Cyan
Declaration
public static readonly Colorf Cyan
Field Value
DarkBlue
Declaration
public static readonly Colorf DarkBlue
Field Value
DarkGrey
Declaration
public static readonly Colorf DarkGrey
Field Value
DarkRed
Declaration
public static readonly Colorf DarkRed
Field Value
DarkSlateBlue
Declaration
public static readonly Colorf DarkSlateBlue
Field Value
DarkSlateGrey
Declaration
public static readonly Colorf DarkSlateGrey
Field Value
DarkYellow
Declaration
public static readonly Colorf DarkYellow
Field Value
DimGrey
Declaration
public static readonly Colorf DimGrey
Field Value
FireBrick
Declaration
public static readonly Colorf FireBrick
Field Value
ForestGreen
Declaration
public static readonly Colorf ForestGreen
Field Value
g
Declaration
Field Value
Gold
Declaration
public static readonly Colorf Gold
Field Value
Goldenrod
Declaration
public static readonly Colorf Goldenrod
Field Value
Green
Declaration
public static readonly Colorf Green
Field Value
Grey
Declaration
public static readonly Colorf Grey
Field Value
HotPink
Declaration
public static readonly Colorf HotPink
Field Value
LightGreen
Declaration
public static readonly Colorf LightGreen
Field Value
LightGrey
Declaration
public static readonly Colorf LightGrey
Field Value
LightPink
Declaration
public static readonly Colorf LightPink
Field Value
LightSlateGrey
Declaration
public static readonly Colorf LightSlateGrey
Field Value
LightSteelBlue
Declaration
public static readonly Colorf LightSteelBlue
Field Value
Magenta
Declaration
public static readonly Colorf Magenta
Field Value
Navy
Declaration
public static readonly Colorf Navy
Field Value
Orange
Declaration
public static readonly Colorf Orange
Field Value
PivotYellow
Declaration
public static readonly Colorf PivotYellow
Field Value
Purple
Declaration
public static readonly Colorf Purple
Field Value
r
Declaration
Field Value
Red
Declaration
public static readonly Colorf Red
Field Value
SaddleBrown
Declaration
public static readonly Colorf SaddleBrown
Field Value
SelectionGold
Declaration
public static readonly Colorf SelectionGold
Field Value
SiennaBrown
Declaration
public static readonly Colorf SiennaBrown
Field Value
Silver
Declaration
public static readonly Colorf Silver
Field Value
SlateGrey
Declaration
public static readonly Colorf SlateGrey
Field Value
StandardBeige
Declaration
public static readonly Colorf StandardBeige
Field Value
Teal
Declaration
public static readonly Colorf Teal
Field Value
TransparentBlack
Declaration
public static readonly Colorf TransparentBlack
Field Value
TransparentWhite
Declaration
public static readonly Colorf TransparentWhite
Field Value
VideoBlack
Declaration
public static readonly Colorf VideoBlack
Field Value
VideoBlue
Declaration
public static readonly Colorf VideoBlue
Field Value
VideoCyan
Declaration
public static readonly Colorf VideoCyan
Field Value
VideoGreen
Declaration
public static readonly Colorf VideoGreen
Field Value
VideoMagenta
Declaration
public static readonly Colorf VideoMagenta
Field Value
VideoRed
Declaration
public static readonly Colorf VideoRed
Field Value
VideoWhite
Declaration
public static readonly Colorf VideoWhite
Field Value
VideoYellow
Declaration
public static readonly Colorf VideoYellow
Field Value
Wheat
Declaration
public static readonly Colorf Wheat
Field Value
White
Declaration
public static readonly Colorf White
Field Value
Yellow
Declaration
public static readonly Colorf Yellow
Field Value
Properties
Item[Int32]
Declaration
public float this[int key] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
key |
|
Property Value
Methods
Add(Colorf)
Declaration
public void Add(Colorf o)
Parameters
Type |
Name |
Description |
Colorf |
o |
|
Clone(Single)
Declaration
public Colorf Clone(float fAlphaMultiply = 1F)
Parameters
Type |
Name |
Description |
Single |
fAlphaMultiply |
|
Returns
CompareTo(Colorf)
Declaration
public int CompareTo(Colorf other)
Parameters
Type |
Name |
Description |
Colorf |
other |
|
Returns
Equals(Colorf)
Declaration
public bool Equals(Colorf other)
Parameters
Type |
Name |
Description |
Colorf |
other |
|
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Lerp(Colorf, Colorf, Single)
Declaration
public static Colorf Lerp(Colorf a, Colorf b, float t)
Parameters
Returns
Set(Colorf)
Declaration
public void Set(Colorf o)
Parameters
Type |
Name |
Description |
Colorf |
o |
|
Set(Single, Single, Single, Single)
Declaration
public void Set(float fR, float fG, float fB, float fA)
Parameters
SetAlpha(Single)
Declaration
public Colorf SetAlpha(float a)
Parameters
Type |
Name |
Description |
Single |
a |
|
Returns
SqrDistance(Colorf)
Declaration
public float SqrDistance(Colorf v2)
Parameters
Type |
Name |
Description |
Colorf |
v2 |
|
Returns
Subtract(Colorf)
Declaration
public void Subtract(Colorf o)
Parameters
Type |
Name |
Description |
Colorf |
o |
|
ToBytes()
Declaration
Returns
ToRGB()
Declaration
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
ToString(String)
Declaration
public string ToString(string fmt)
Parameters
Type |
Name |
Description |
String |
fmt |
|
Returns
WithAlpha(Single)
Declaration
public Colorf WithAlpha(float newAlpha)
Parameters
Type |
Name |
Description |
Single |
newAlpha |
|
Returns
Operators
Addition(Colorf, Colorf)
Declaration
public static Colorf operator +(Colorf v0, Colorf v1)
Parameters
Returns
Addition(Colorf, Single)
Declaration
public static Colorf operator +(Colorf v0, float f)
Parameters
Returns
Equality(Colorf, Colorf)
Declaration
public static bool operator ==(Colorf a, Colorf b)
Parameters
Returns
Implicit(Colorf to Vector3f)
Declaration
public static implicit operator Vector3f(Colorf c)
Parameters
Type |
Name |
Description |
Colorf |
c |
|
Returns
Implicit(Vector3f to Colorf)
Declaration
public static implicit operator Colorf(Vector3f c)
Parameters
Returns
Inequality(Colorf, Colorf)
Declaration
public static bool operator !=(Colorf a, Colorf b)
Parameters
Returns
Multiply(Colorf, Single)
Declaration
public static Colorf operator *(Colorf v, float f)
Parameters
Returns
Multiply(Single, Colorf)
Declaration
public static Colorf operator *(float f, Colorf v)
Parameters
Returns
Subtraction(Colorf, Colorf)
Declaration
public static Colorf operator -(Colorf v0, Colorf v1)
Parameters
Returns
Subtraction(Colorf, Single)
Declaration
public static Colorf operator -(Colorf v0, float f)
Parameters
Returns
UnaryNegation(Colorf)
Declaration
public static Colorf operator -(Colorf v)
Parameters
Type |
Name |
Description |
Colorf |
v |
|
Returns
Implements