Skip to content

Function: polygonToPath() ​

ts
function polygonToPath(
   p, 
   precision?, 
   radius?
): string;

d attribute for a polygon. With radius, corners are rounded with circular arcs.

Parameters ​

ParameterTypeDefault value
pPolygonundefined
precisionnumber3
radiusnumber0

Returns ​

string

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