<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.
int32ElementSizeReturns the size of the <Color> object's component element size, which is 1 byte.
int32FillFills the array with the specified value.
<Uint8Iterator>FirstReturns an iterator positioned at the start of the collection.
int32GetComponentReturns the vector component value at the specified index.
doubleGetComponentAsFloat32Returns the component at the specified index as a normalized <float32> value. This value is between 0.0 and 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.
<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().
<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.
int32SizeInBytesReturns the size of the <Color> object, which is 4 bytes.

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.
int32AGets or sets the alpha value of the color.
int32BGets or sets the blue value of the color.
int32GGets or sets the green value of the color.
int32RGets or sets the red value of the color.
int32WGets or sets the alpha value of the color.
int32XGets or sets the red value of the color.
int32YGets or sets the green value of the color.
int32ZGets or sets the blue value of the color.