Function computeRectangle

  • Parameters

    • canvas: HTMLCanvasElement
    • tw: number
    • th: number

    Returns RectangleOutput