sdfDiamond
sdfDiamond(
options?):SDFShape
Defined in: packages/sigma/src/rendering/nodes/shapes/diamond.ts:45
Creates a diamond (rhombus) SDF shape.
Parameters
options?
Configuration options for the diamond
Returns
Diamond SDF shape definition
Example
// Sharp diamondconst diamond = sdfDiamond();
// Rounded diamondconst rounded = sdfDiamond({ cornerRadius: 0.1 });
// Rotated diamondconst rotated = sdfDiamond({ rotation: Math.PI / 4 });