Creates a new ColorManager instance.
The RPC client used for communication with the rendering backend
Destroys a color instance and removes it from the cache.
The ColorHandle to destroy
Creates or retrieves a cached color instance for the given hex value.
The RGBA32 color value
Promise resolving to a ColorHandle, or undefined if creation fails
Creates or retrieves cached color instances for multiple hex values.
Array of RGBA32 color values
Promise resolving to an array of ColorHandles in the same order as input, or undefined if creation fails
Retrieves a color instance by its unique identifier.
The unique identifier of the color
The ColorHandle associated with the ID, or undefined if not found
Manages the creation, caching, and deletion of color instances. Handles batched deletion of colors to optimize RPC calls.