This repository was archived by the owner on Dec 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
VRageMath.Color
Malware edited this page Dec 21, 2018
·
53 revisions
← Index
Namespace: VRageMath
Assembly: VRage.Math.dll
Implements:
Represents a four-component color using red, green, blue, and alpha data.
| Member | Description |
|---|---|
uint PackedValue |
| Member | Description |
|---|---|
Color FromNonPremultiplied(Vector4 vector) |
Convert a non premultipled color into color data that contains alpha. |
Color FromNonPremultiplied(int r, int g, int b, int a) |
|
Vector3 ToVector3() |
|
Vector4 ToVector4() |
|
Color Lerp(Color value1, Color value2, float amount) |
|
Color Multiply(Color value, float scale) |
|
string ToString() |
|
int GetHashCode() |
|
bool Equals(Object obj) |
Test an instance of a color object to see if it is equal to this object. |
bool Equals(Color other) |
Test a color to see if it is equal to the color in this instance. |
Color Lighten(Color inColor, double inAmount) |
|
Color Darken(Color inColor, double inAmount) |
|
Color ToGray() |
|
Vector4 ToVector4() |
Inherited from IPackedVector |
void PackFromVector4(Vector4 vector) |
Sets the packed representation from a Vector4. Inherited from IPackedVector
|
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!