MeshVertexColorList

MeshVertexColorList

Provides access to the vertex colors of a mesh object.

Members

capacity :int

Gets or sets the total number of vertex colors the internal data structure can hold without resizing.
Type:
  • int

count :int

Gets or sets the number of mesh colors.
Type:
  • int

Methods

add(red, green, blue) → {int}

Adds a new vertex color to the end of the color list.
Parameters:
Name Type Description
red int Red component of color, must be in the 0~255 range.
green int Green component of color, must be in the 0~255 range.
blue int Blue component of color, must be in the 0~255 range.
Returns:
The index of the newly added color.
Type
int

clear()

Clears the vertex color list on the mesh.

get()

...

set()

...