Skip to content

Function: tracePolygon() ​

ts
function tracePolygon(
   ctx, 
   poly, 
   radius
): void;

Add a polygon (with rounded corners) to the current path, as a closed subpath.

Parameters ​

ParameterType
ctxPick<CanvasContextLike, "moveTo" | "lineTo" | "arc" | "closePath">
polyPolygon
radiusnumber

Returns ​

void

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