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 rectangle -
perimeter
: returns the perimeter of the rectangle