# `<polygon>`

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

Connect local vertices into a closed contour.



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

A polygon follows its points in order and closes from the last point back to the first.

## Syntax [#syntax]

### Close an arrowhead [#close-an-arrowhead]

Write three vertices for the amber arrowhead. The closing segment is the vertical base from (−2, 6) to (−2, −6). At frame 18 the parent shape has moved and turned the arrow to point down the road.

```xml
<polygon points="-2,-6 8,0 -2,6"/>
```

[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)
