Require that shape is on the canvas.

  • Parameters

    • shape: Shape

      Shape

    • canvasWidth: Num

      Width of canvas

    • canvasHeight: Num

      Height of canvas

    Returns Num