CheerpX.Linux#setKmsCanvas
Parameters
-
canvas: HTMLCanvasElement - The
canvas
element in your HTML document that serves as the rendering surface. This is where graphical output is displayed. -
width: number - The desired width of the canvas in pixels.
-
height: number - The desired height of the canvas in pixels.
Description
The setKmsCanvas
method configures a kernel-mode setting (KMS) canvas, enabling the CheerpX Linux instance to render graphical output, for example via Xorg. The dimensions of the canvas are defined by the width
and height
parameters, allowing the application to adapt to different display sizes dynamically.