rect function
A closed axis-aligned rectangle from (x, y), w wide and h tall.
Implementation
CatalogShape rect(double x, double y, double w, double h) =>
CatalogPolyline([_p(x, y), _p(x + w, y), _p(x + w, y + h), _p(x, y + h)],
closed: true);