Brace
brace()
Draw a curly brace between two points.
Styling
Root: brace
Use the fill style for tapered braces and set stroke to none.
Anchors
- start
- Where the brace starts, same as the
startparameter. - end
- Where the brace end, same as the
endparameter. - spike
- Point of the spike, halfway between
startandendand shifted byamplitudetowards the pointing direction. - content
- Point to place content/text at, in front of the spike.
- center
- Center of the enclosing rectangle.
cetz.decorations.brace((0,1),(2,1))
cetz.decorations.brace((0,0),(2,0), outer-inset: 0)
start:
Start point
end:
End point
Thickness of tapered braces (if ratio, relative to half the amplitude).