Provides script language access to C++ objects of this type.
Class Hierarchy | No registered superclass. |
Function members are as follows:
Return Type | Function Name | Documentation |
---|---|---|
<Color4444> | Color4444 | Constructs a <Color4444> object with the specified red, green, blue, and alpha values. |
int32 | Assign | Assigns the right-hand object to the left-hand object. |
int32 | Compare | Returns true if the left-hand color is equal to the right-hand color. Otherwise returns false. |
int32 | ElementSize | Returns the size of the <Color4444> object's component element size, which is 2 bytes. This is because the <Color4444> object is packed, and doesn't store single-byte-per-color values internally. |
int32 | GetComponent | Returns the component value at the specified index. |
double | GetComponentAsFloat32 | Returns the component at the specified index as a normalized <float32> value. This value is between 0.0 and 1.0. |
int32 | SetComponent | Sets the <Color4444> component at the specified index to the specified value. |
int32 | SetRGB | Sets the red, green and blue values of a <Color4444> object. |
int32 | SetRGBA | Sets the specified red, green, blue, and alpha values. |
int32 | SizeInBytes | Returns the size of the <Color4444> object, which is 2 bytes. |
Object members are as follows:
Type Name | Accessor Name | Documentation |
---|---|---|
<Color4444> | Value | Gets or sets the value of the <Color4444> object. Useful for when you want to copy color values with assignment expressions such as myColorA.Value = myColorB.Value. |
int32 | A | Gets or sets the alpha value of the color. |
int32 | B | Gets or sets the blue value of the color. |
int32 | G | Gets or sets the green value of the color. |
int32 | R | Gets or sets the red value of the color. |