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