# `<path>`

[Canonical page](https://nothing.graphics/docs/format/reference/path) · [Page source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/docs/reference/path.md)

Describe editable contours using SVG path commands.



<!-- Generated by ncf/tools/reference/generate.mjs. -->

A path can carry curves, arcs and multiple subpaths. Its winding rule determines filled regions.

## Syntax [#syntax]

### Draw two disconnected segments [#draw-two-disconnected-segments]

Each M starts a subpath and each h draws a relative horizontal segment. The first length is 48 and the second is 16. Both lengths count toward the one stroke trim. The move between them does not add length.

```xml
<path d="M8 10h48 M72 10h16"/>
```

[Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/compound-trim.nothing) · [Sample checks](https://nothing.graphics/docs/format/spec/contour-trim#paths-with-several-subpaths)

## Usage context [#usage-context]

Allowed parents are [`<shape>`](https://nothing.graphics/docs/format/reference/shape).

Inherits from [Geometry](https://nothing.graphics/docs/format/reference/geometry).

## Attributes [#attributes]

[Property animation](https://nothing.graphics/docs/format/spec/animation#property-types-and-exceptions)

### `d` [#d]

**Value** `SVG 2 XML path data` · **Required** · **Keys** Path commands

Absolute or relative commands, with implicit repetition admitted. Continuous key segments require matching expanded commands and coordinate modes. For arc flags, any nonzero interpolated value is true.

### `fill-rule` [#fill-rule]

**Value** `nonzero`, `evenodd` · **If omitted** `nonzero` · **Keys** Held

Winding rule for the path interior. The rule also applies when this path supplies a filled mask or boolean region.

## Children [#children]

| Elements                                                              | Cardinality  | Declared by | Role and source order                                                                                                                                                                                                |
| --------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`<animate>`](https://nothing.graphics/docs/format/reference/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](https://nothing.graphics/docs/format/spec/animation#evaluation) |

## Specifications [#specifications]

* [SVG path data](https://nothing.graphics/docs/format/spec/graphics#path-data)
* [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation)
