@bloopjs/toodle / Toodle / ToodleOptions
Type Alias: ToodleOptions
ToodleOptions =
object
Defined in: Toodle.ts:761
Properties
backend?
optionalbackend:BackendType|"auto"
Defined in: Toodle.ts:785
The rendering backend to use.
auto: Automatically detect the best available backend (WebGPU > WebGL).
webgpu: Use WebGPU backend. Throws if WebGPU is not available.
webgl2: Use WebGL 2 backend (fallback for older browsers).
Default
"auto"filter?
optionalfilter:"nearest"|"linear"
Defined in: Toodle.ts:772
The filter mode to use for the default quad shader. see: https://webgpufundamentals.org/webgpu/lessons/webgpu-textures.html#a-mag-filter
nearest: nearest neighbor sampling. makes pixel art look sharp and vector art look jaggy.
linear: linear sampling. makes vector art look smooth and pixel art look blurry.
Default
"linear"limits?
optionallimits:LimitsOptions
Defined in: Toodle.ts:773