Nothing

<stroke>

Expand a shape's contour into an independently painted band.

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>

A stroke paints the owning shape's contour with its own width, styling, optional trim and paint stack. The shape can have several strokes.

Syntax

Keep a full casing beneath a reveal

The dark casing paints the whole 100-unit road. The narrow, light sibling begins empty. At frame 12, (60, 16) is light and (76, 30) is still dark.

<stroke stroke-width="12">
  <paint><solid color="#2C313CFF"/></paint>
</stroke>

Complete .nothing source · Sample checks

Usage context

Allowed parents are <shape>.

Inside and outside alignment occupy one side of a simple closed contour. Open contours use centered alignment. A trim selects coverage for this stroke alone.

Attributes

Property animation

stroke-width

Value local units · Required · Keys Scalar

Nonnegative width. Zero gives no coverage.

stroke-align

Value center, inside, outside · If omitted center · Keys Held

Place the band across, inside or outside the contour.

stroke-linecap

Value butt, round, square · If omitted butt · Keys Held

Shape of the endpoint at an open end, including an end created by trim.

stroke-linejoin

Value miter, round, bevel · If omitted miter · Keys Held

Shape of a join between segments.

stroke-miterlimit

Value ratio · If omitted 4 · Keys Scalar

Maximum miter ratio. A miter beyond this limit becomes a bevel.

Children

ElementsCardinalityDeclared byRole and source order
<paint>One or more<stroke>Paints clipped to the expanded and potentially trimmed stroke. Document order, bottom to top.
<trim>Optional, at most one<stroke>Select an interval on the contour for this stroke. Independent of its position among paints. Directed contours and distance
<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