Interface
SilkApp
What createSilkApp returns: the Pixi application, its CSS size and resolution, and helpers to change or destroy it.
Properties#
Methods#
destroy()#
destroy(): void;
Stops observers, destroys the stage and renderer and removes the canvas. Safe with several apps on a page.
Returns#
void
setResolution()#
setResolution(resolution: number | null): void;
Forces a resolution, for example to compare 1x and 2x. null returns to devicePixelRatio.
Parameters#
| Parameter | Type |
|---|---|
resolution | number | null |
Returns#
void