Function makeFullscreenCanvas

  • Create a canvas that fills the entire browser window, destroying all other content in the document body in the process.

    Returns HTMLCanvasElement

    A canvas that fills the entire browser window.

    UnsupportedOperationError if called in a headless environment.