Calla-Site/wwwroot/scripts/game.js
/**
 * Creates an offscreen canvas element, if they are available. Otherwise, returns an HTMLCanvasElement.
 * @param {number} w - the width of the canvas
 * @param {number} h - the height of the canvas
 * @param {...import("./tag").TagChild} rest - optional HTML attributes and child elements, to use in constructing the HTMLCanvasElement if OffscreenCanvas is not available.
 * @returns {OffscreenCanvas|HTMLCanvasElement}
 */
Creates an offscreen canvas element, if they are available. Otherwise, returns an HTMLCanvasElement.
@param {number} w - the width of the canvas
@param {number} h - the height of the canvas
@param {...import("./tag").TagChild} rest - optional HTML attributes and child elements, to use in constructing the HTMLCanvasElement if OffscreenCanvas is not available.
Creates an offscreen canvas element if they are available . Otherwise returns an HTMLCanvasElement . @param { number } w - the width of the canvas @param { number } h - the height of the canvas @param { ... import ( " . / tag " ) . TagChild } rest - optional HTML attributes and child elements to use in constructing the HTMLCanvasElement if OffscreenCanvas is not available .
function CanvasOffscreen(w, h, ...rest) {
    if (window.OffscreenCanvas) {
        return new OffscreenCanvas(w, h);
    }
    else {
        return Canvas(...rest, width(w), height(h));
    }
}
function CanvasOffscreen ( w , h , ... rest ) { if ( window . OffscreenCanvas ) { return new OffscreenCanvas ( w , h ) ; } else { return Canvas ( ... rest , width ( w ) , height ( h ) ) ; } }
Creates an offscreen canvas element, if they are available.
Creates an offscreen canvas element if they are available .