Manages the creation, caching, and deletion of color instances. Handles batched deletion of colors to optimize RPC calls.

Constructors

Methods

  • Creates or retrieves cached color instances for multiple hex values.

    Parameters

    • c: RGBA32[]

      Array of RGBA32 color values

    Returns Promise<RemoteColor[]>

    Promise resolving to an array of ColorHandles in the same order as input, or undefined if creation fails

    Duplicate hex values will be mapped to the same color instance for efficiency