# `<polyline>`

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

Follow successive local vertices with straight segments.



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

A polyline connects its points in source order and leaves the contour open.

## Syntax [#syntax]

### Define a road with one bend [#define-a-road-with-one-bend]

The first leg runs 60 units right and the second runs 40 down. At frame 18 the progress stripe has traveled 75 units, so its tip sits 15 units down the second leg.

```xml
<polyline points="0,0 60,0 60,40"/>
```

[Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/attached-drawables/01-road-arrow.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#published-reference-examples)

## 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).

Includes [Points](https://nothing.graphics/docs/format/reference/points).

## Attributes [#attributes]

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

### `points` [#points]

**Value** `Whitespace-separated x,y pairs of finite local coordinates` · **Required** · **Keys** Point list · **Declared by** [Points](https://nothing.graphics/docs/format/reference/points#points)

Authored vertices. An empty list gives no bounds or contour. Continuous segments require the same number of pairs. A held key may change the number of vertices.

## 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]

* [Shapes and geometry](https://nothing.graphics/docs/format/spec/graphics#shapes)
* [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation)
