Class MeshVertexColorList

Constructors

Properties

Methods

Constructors

Properties

capacity: number

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

count: number

Gets or sets the number of mesh colors.

Methods

  • Parameters

    • red: number

      Red component of color, must be in the 0~255 range.

    • green: number

      Green component of color, must be in the 0~255 range.

    • blue: number

      Blue component of color, must be in the 0~255 range.

    Returns number

    The index of the newly added color.

    Description

    Adds a new vertex color to the end of the color list.

  • Returns void

    Description

    Clears the vertex color list on the mesh.

  • ...

    Parameters

    • index: number
    • color: object

    Returns void

Generated using TypeDoc