Skip to content

1681-engine / index / Painter

Interface: Painter<T> ​

Defined in: src/assets/Prepainter.ts:9

Paints an item's texture off the main thread (workerPainter), or anywhere else that answers with a promise.

Type Parameters ​

Type Parameter
T

Methods ​

dispose()? ​

ts
optional dispose(): void;

Defined in: src/assets/Prepainter.ts:12

Stops it for good (a worker terminated).

Returns ​

void


paint() ​

ts
paint(item, id): Promise<PaintedPixels>;

Defined in: src/assets/Prepainter.ts:10

Parameters ​

ParameterType
itemT
idstring

Returns ​

Promise<PaintedPixels>

Released under the MIT License.