UNPKG

rect

Version:

A library for rectangles.

12 lines (7 loc) 232 B
# rect A library for rectangles. ## Usage Rect takes four arguments `x`, `y`, `width`, and `height`. It also has two methods: - `perimeter()`: returns the perimeter of the rectangle - `area()`: returns the area of the rectangle