UNPKG
rect
Version:
latest (1.2.1)
1.2.1
1.2.0
1.1.0
1.0.0
A library for rectangles.
github.com/acareaga/rect
acareaga/rect
rect
/
README.md
12 lines
(7 loc)
•
232 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
# 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