Class ExMV4
Functions that return V4.
Note that these are also used for colors, in the format R G B A (0-1 floats).
Inheritance
System.Object
ExMV4
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: cs.temp.dll.dll
Syntax
public static class ExMV4
Methods
Black()
Declaration
public static tv4 Black()
Returns
Blue()
Declaration
Returns
Green()
Declaration
public static tv4 Green()
Returns
MulA(tfloat, tv4)
Multiply a color's alpha component by a float value.
Declaration
public static tv4 MulA(tfloat a, tv4 tp)
Parameters
Type |
Name |
Description |
tfloat |
a |
|
tv4 |
tp |
|
Returns
Orange()
Declaration
public static tv4 Orange()
Returns
Palette(String, Palette.Shade)
Declaration
public static tv4 Palette(string palette, Palette.Shade shade)
Parameters
Type |
Name |
Description |
System.String |
palette |
|
Palette.Shade |
shade |
|
Returns
Pink()
Declaration
Returns
Purple()
Declaration
public static tv4 Purple()
Returns
Red()
Declaration
Returns
RGB(tfloat, tfloat, tfloat)
Derive a color from R, G, B components. Alpha is set to 1.
Declaration
public static tv4 RGB(tfloat r, tfloat g, tfloat b)
Parameters
Type |
Name |
Description |
tfloat |
r |
|
tfloat |
g |
|
tfloat |
b |
|
Returns
RGBA(tfloat, tfloat, tfloat, tfloat)
Derive a color from R, G, B, A components.
Declaration
public static tv4 RGBA(tfloat r, tfloat g, tfloat b, tfloat a)
Parameters
Type |
Name |
Description |
tfloat |
r |
|
tfloat |
g |
|
tfloat |
b |
|
tfloat |
a |
|
Returns
Teal()
Declaration
Returns
TP3A(tfloat, tv3)
Derive a color from a vector3 containing R, G, B components and an separate alpha component.
Declaration
public static tv4 TP3A(tfloat a, tv3 tp)
Parameters
Type |
Name |
Description |
tfloat |
a |
|
tv3 |
tp |
|
Returns
WithA(tfloat, tv4)
Combine the R,G,B components of a vector4 and a separate alpha component.
Declaration
public static tv4 WithA(tfloat a, tv4 tp)
Parameters
Type |
Name |
Description |
tfloat |
a |
|
tv4 |
tp |
|
Returns
Yellow()
Declaration
public static tv4 Yellow()
Returns