Nothing

<trim>

Select a drawn distance interval for one stroke.

Read as Markdown

Examples

Download the complete .nothing source · Source on GitHub

Rendered with ncf-preview at 260 × 160.

Dark blue ink forms the opening loop. The later letter strokes and the underline are still blank.
Frame 24 · Opening loopDark blue ink forms the opening loop. The later letter strokes and the underline are still blank.
The stroke reaches the final letter and the underline is still absent. The pen lift adds zero length.
Frame 72 · Final letterThe stroke reaches the final letter and the underline is still absent. The pen lift adds zero length.
The lettering is complete. A separate ink stroke grows from left to right beneath it.
Frame 84 · Underline in progressThe lettering is complete. A separate ink stroke grows from left to right beneath it.
The blue underline reaches its rounded final cap beneath the completed lettering.
Frame 96 · Complete signatureThe blue underline reaches its rounded final cap beneath the completed lettering.
XML source
  <shape>
    <path d="M24 91 C59 87 105 60 107 33 C109 14 86 21 74 52 C61 86 65 115 40 119 C23 122 27 102 48 101 C68 99 78 117 98 106 C109 100 117 89 120 81 C123 70 109 72 103 86 C95 104 104 112 115 103 C125 96 131 81 125 78 C120 76 118 87 130 89 C137 90 148 83 153 76 C148 85 134 109 147 109 C160 109 176 85 184 74 C178 84 163 110 176 109 C190 109 203 92 223 85 M40 140 C85 127 159 121 202 124 C217 125 232 122 243 117"/>
    <stroke stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
      <trim start="0" end="0">
        <animate attributeName="end" fill="freeze">
          <key frame="0" value="0" ease="linear"/>
          <key frame="96" value="1"/>
        </animate>
      </trim>
      <paint><solid color="#173F5BFF"/></paint>
    </stroke>
  </shape>

Trim measures along sampled geometry in its authored contour direction, through subpaths in order. The fill and sibling strokes keep their original geometry.

Syntax

Reveal one stripe along a bend

At frame 12 the narrow stripe has covered half the 120-unit contour, ending at (76, 174). At frame 24 it reaches (96, 134). The wider casing stays complete.

<trim start="0" end="0">
  <animate attributeName="end" fill="freeze">
    <key frame="0" value="0" ease="linear"/>
    <key frame="24" value="1"/>
  </animate>
</trim>

Complete .nothing source · Sample checks

Usage context

Allowed parents are <stroke>.

Open and compound contours use positions in [0, 1]. A single closed contour uses signed unwrapped laps. An end at or before the start produces no stroke coverage. Diagnose trim on text or boolean geometry.

Attributes

Property animation

start

Value fraction of total local contour length · Required · Keys Scalar

Start of the selected interval.

end

Value fraction of total local contour length · Required · Keys Scalar

End of the selected interval.

Children

ElementsCardinalityDeclared byRole and source order
<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