<boolean>
Combine editable operand shapes into one closed region.
Examples
Download the complete .nothing source · Source on GitHub
Rendered with ncf-preview at 304 × 64.
Bound resources
- fixtures/fonts/PT_Serif/PTSerif-Bold.ttf for
PT Serif@700

<boolean type="subtraction">
<shape><rect anchor-u="0" anchor-v="0" offset-x="104" offset-y="0" width="200" height="64" corner-radius="8"/></shape>
<shape><text x="204" y="48" text-anchor="middle" font-family="PT Serif" font-weight="700" font-size="44">BOOK</text></shape>
</boolean>A boolean uses its operands' transformed geometry. The enclosing shape paints the resulting region.
Syntax
Cut editable copy through the card
Use a rectangle as the first operand and laid-out text as the second. With PT Serif Bold bound, the card is blue at (185, 24), clear inside the letter at (148, 30), and crosses a later white rule at (148, 36).
<boolean type="subtraction">
<shape><rect anchor-u="0" anchor-v="0" offset-x="104" offset-y="0" width="200" height="64" corner-radius="8"/></shape>
<shape><text x="204" y="48" text-anchor="middle" font-family="PT Serif" font-weight="700" font-size="44">BOOK</text></shape>
</boolean>Complete .nothing source · Sample checks
Usage context
Allowed parents are <shape>.
Inherits from Geometry.
Use the closed regions admitted by the boolean contract. An operand's paints, appearance effects and attachments do not affect that region.
Attributes
type
Value union, intersection, subtraction, exclusion · Required · Keys Held
Choose union, intersection, ordered subtraction or odd-parity exclusion.
Children
| Elements | Cardinality | Declared by | Role and source order |
|---|---|---|---|
<shape> | Two or more | <boolean> | Shapes supplying the input regions. Document order. Subtraction removes all later regions from the first operand. |
<animate> | Zero or more | Animation | A track targets one keyable property on this owner. For equal first-key times, the later track in document order wins. Evaluating animation tracks |