Function: tracePolygon()
ts
function tracePolygon(
ctx,
poly,
radius
): void;Add a polygon (with rounded corners) to the current path, as a closed subpath.
Parameters
| Parameter | Type |
|---|---|
ctx | Pick<CanvasContextLike, "moveTo" | "lineTo" | "arc" | "closePath"> |
poly | Polygon |
radius | number |
Returns
void