<Color> Data Interface

Provides script language access to C++ objects of this type.

Class HierarchyNo registered superclass.

Function Members

Function members are as follows:

Return Type Function Name Documentation
<Color>ColorConstructs a <Color> object with the specified red, green, blue, and alpha values.
int32AssignAssigns the right-hand object to the left-hand object.
int32BindIteratorsBinds iterators to this object.
int32BindPointerBinds a <MemoryPointer> or subclass to this object. The <MemoryPointer> becomes a pointer to this object that can be passed to compatible functions.
int32CompareReturns true if the left-hand color is equal to the right-hand color. Otherwise returns false.
int32FillFills the array with the specified value.
<Uint8Iterator>FirstReturns an iterator positioned at the start of the collection.
<uint8>GetComponentReturns the vector component value at the specified index.
float32GetComponentAsFloat32Returns the component at the specified index as a normalized <float32> value. This value is between 0.0 and 1.0.
float64GetComponentAsFloat64Returns the color value (0-255) as a <float64> ranging from 0.0 to 1.0.
int32GetCountReturns the count of the components in the underlying <Color> object, which is 4.
uint32GetDataReturns the color byte values packed into a uint32.
int32GetElementSizeReturns the size of the <Color> object's component element size, which is 1 byte.
<Uint8Pointer>GetPointerReturns a pointer to this object. The pointer object is allocated with new so you must use auto in the declaration or you must manually delete the pointer object. For example: auto Uint8Pointer ptr = object.GetPointer().
int32GetSizeInBytesReturns the size of the <Color> object, which is 4 bytes.
<Uint8ArrayView>GetViewReturns a <Uint8ArrayView> that contains first and last iterators for the collection.
<Uint8Iterator>LastReturns an iterator positioned at the end of the collection.
int32SetComponentSets the <Color> component at the specified index to the specified value.
int32SetDataSets the color data from by values in a packed uint32.
int32SetRGBSets the red, green and blue values of a <Color> object.
int32SetRGBASets the specified red, green, blue, and alpha values.

Object Members

Object members are as follows:

Type Name Accessor Name Documentation
<Color>ValueGets or sets the value of the <Color> object. Useful for when you want to copy color values with assignment expressions such as myColorA.Value = myColorB.Value.
<uint8>AGets or sets the alpha value of the color.
<uint8>BGets or sets the blue value of the color.
<uint8>GGets or sets the green value of the color.
<uint8>RGets or sets the red value of the color.
<uint8>WGets or sets the alpha value of the color.
<uint8>XGets or sets the red value of the color.
<uint8>YGets or sets the green value of the color.
<uint8>ZGets or sets the blue value of the color.