nectar-leg
v2.0.0
Published
A fun JavaScript library for working with rectangles.
Downloads
4
Maintainers
Readme
Nectar Leg
A fun little library for working with rectangles in JavaScript.
API
Nectar Leg takes four arguments: x
, y
, width
, and height
.
It also has two methods:
area
: returns the area of the rectangleperimeter
: returns the perimeter of the rectangle