Function createCanvas

  • Create and return a new Canvas element

    Parameters

    • width: number

      width

    • height: number

      height

    • OptionalreturnOffscreenCanvas: boolean = false

      will return an OffscreenCanvas if supported

    Returns OffscreenCanvas | HTMLCanvasElement

    a new Canvas element of the given size

    video