flywave-mapview.colorcache
Home > @flywave/flywave-mapview > ColorCache
ColorCache class
Use ColorCache to reuse a color specified by name and save allocation as well as setup time.
Implemented as a singleton. Do not modify colors after getting them from the ColorCache.
Signature:
export declare class ColorCache
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| Return instance of | ||
| number | Returns the number of elements in the cache. |
Methods
Method | Modifiers | Description |
|---|---|---|
Clears the cache. Only references to the THREE.Color are removed from the cache. Consequently, clearing the cache does not cause any negative visual impact. | ||
Returns the color for the given |