Skip to content

Documentation / spryte / RendererOptions

Interface: RendererOptions ​

Defined in: renderer.ts:5

Properties ​

backend? ​

optional backend?: "webgl2" | "2d" | "auto"

Defined in: renderer.ts:7

auto (default) uses WebGL2 and falls back to Canvas 2D; webgl2 throws where it's unavailable.


smooth? ​

optional smooth?: boolean

Defined in: renderer.ts:9

Linear filtering for images by default. Pass false for pixel art. Default true.