Function box

Creates a new Box instance with the specified parameters.

  • Parameters

    • x: number = 0

      The x-coordinate of the box's position.

    • y: number = 0

      The y-coordinate of the box's position.

    • w: number = 0

      The width of the box.

    • h: number = 0

      The height of the box.

    Returns Box

    A new Box instance.