跳到主要内容

flywave-mapview.colorcache.getcolor

Home > @flywave/flywave-mapview > ColorCache > getColor

ColorCache.getColor() method

Returns the color for the given colorCode. This function may reuse a previously generated color, so you cannot modify the contents of the color.

Signature:

getColor(colorCode: string | number): THREE.Color;

Parameters

Parameter

Type

Description

colorCode

string | number

ThreeJS color code or name. You must provide a valid color code or name, as this function does not do any validation.

Returns:



THREE.Color