Nothing

<boolean>

Combine editable operand shapes into one closed region.

Read as Markdown

Examples

Download the complete .nothing source · Source on GitHub

Rendered with ncf-preview at 304 × 64.

Bound resources

A blue block has a circular hole. An adjacent blue card has holes in the shape of BOOK, crossed by a white rule painted later.
Still · Circle and letter cutouts at 0sA blue block has a circular hole. An adjacent blue card has holes in the shape of BOOK, crossed by a white rule painted later.
XML source
    <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

Property animation

type

Value union, intersection, subtraction, exclusion · Required · Keys Held

Choose union, intersection, ordered subtraction or odd-parity exclusion.

Children

ElementsCardinalityDeclared byRole 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 moreAnimationA track targets one keyable property on this owner. For equal first-key times, the later track in document order wins. Evaluating animation tracks

Specifications

On this page