Function rectangle

  • Create rectange centered at origin

    Parameters

    • width: number

      width of the rectangle

    • height: number

      height of the rectangle

    Returns Diagram

    a Diagram object