Skip to content

Function: cssShapes() ​

ts
function cssShapes(
   shapes, 
   box, 
   precision?
): string;

polygon(...) for several shapes (outlines with holes) at once: an even–odd polygon that visits each extra loop from the first outline's first point and comes back.

Parameters ​

ParameterTypeDefault value
shapesreadonly Shape[]undefined
boxRectundefined
precisionnumber4

Returns ​

string

Hat tiling and isohedral tilings after Craig S. Kaplan's hatviz and Tactile (BSD 3-Clause).