Skip to content

Interface: CanvasContextOptions ​

Defined in: types/desktop-engine.d.ts:1301

Optional options for getContext

Properties ​

alpha? ​

ts
optional alpha?: boolean;

Defined in: types/desktop-engine.d.ts:1306

Whether the canvas has an alpha channel, true by default (as on the web); full-screen wallpapers pass false, an opaque layer composites with less power


antialias? ​

ts
optional antialias?: boolean;

Defined in: types/desktop-engine.d.ts:1303

Whether to enable multisample antialiasing (up to 4x), off by default (unlike WebGL on the web)

The SDK is released under the Apache License 2.0