Selva Compute API Reference - v2.1.0
    Preparing search index...
    Index

    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.

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

    • Returns void

      Clears the vertex color list on the mesh.

    • ...

      Parameters

      • index: number

      Returns object

    • ...

      Parameters

      • index: number
      • color: object

      Returns void