Skip to content

Documentation / spryte / TargetOptions

Interface: TargetOptions ​

Defined in: target.ts:8

Options for draw.createTarget.

Properties ​

format? ​

optional format?: TargetFormat

Defined in: target.ts:13

The storage you'd like. rgba16f needs WebGL2 with EXT_color_buffer_float or EXT_color_buffer_half_float; elsewhere (Canvas 2D, older phones) the target falls back to rgba8. Read target.format for what you got.