Skip to content

1681-engine / index / clearSilhouettes

Function: clearSilhouettes() ​

ts
function clearSilhouettes(texture?): void;

Defined in: src/core/silhouette.ts:75

Frees cached silhouettes: those of one texture (it is about to be repainted or destroyed), or all of them (a scene or atlas change). A sprite still wearing one must be given another texture first.

Parameters ​

ParameterType
texture?Texture<TextureSource<any>>

Returns ​

void

Released under the MIT License.