Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

sdfCircle

sdfCircle(): SDFShape

Defined in: packages/sigma/src/rendering/nodes/shapes/circle.ts:26

Creates a circle SDF shape. A circle has no configurable options - it’s always a perfect circle.

Returns

SDFShape

Circle SDF shape definition

Example

const circleShape = sdfCircle();
const program = createNodeProgram({
shape: circleShape,
layers: [layerFill()],
});