Skip to content

modern-pdf-lib


modern-pdf-lib / circlePath

Function: circlePath()

circlePath(cx, cy, radius): string

Defined in: src/core/operators/graphics.ts:281

Produce the path operators for an approximate circle (4 cubic Bezier curves). Does NOT include the painting operator — call stroke, fill, or fillAndStroke afterwards.

Parameters

cx

number

Centre x.

cy

number

Centre y.

radius

number

Radius.

Returns

string

Released under the MIT License.