Vertex Viewer SDK
    Preparing search index...

    Function fromArray

    • Converts an array of four values to a Color. The sequence of the array is expected to be [r, g, b] or [r, g, b, a].

      Parameters

      • rgba: number[] | Uint8ClampedArray<ArrayBufferLike>

      Returns Color.Color