# Geometry

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

The family of elements that supply a shape’s contour.



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

Each shape has exactly one geometry child, such as a rectangle or path. That contour is evaluated in the shape’s local coordinates.

## Example [#example]

### Widen a rectangle in its own coordinates [#widen-a-rectangle-in-its-own-coordinates]

Key `width` inside the `<rect>` that defines the shape’s contour. Between frames 4 and 8, the local width grows from 12 to 20 and the local height stays 8. The complete scene holds the containing shape at a quarter turn, so the painted area grows vertically from 8 × 12 to 8 × 20.

```xml
<rect width="12" height="8">
  <animate attributeName="width" fill="freeze">
    <key frame="4" value="12" ease="linear"/>
    <key frame="8" value="20"/>
  </animate>
</rect>
```

[Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/centered-rectangle.nothing)

## Usage context [#usage-context]

Type `Geometry` in the [scene format type model](https://nothing.graphics/docs/format/spec/type-model).

Related pages in this reference are [`<rect>`](https://nothing.graphics/docs/format/reference/rect), [`<circle>`](https://nothing.graphics/docs/format/reference/circle), [`<ellipse>`](https://nothing.graphics/docs/format/reference/ellipse), [`<line>`](https://nothing.graphics/docs/format/reference/line), [`<polyline>`](https://nothing.graphics/docs/format/reference/polyline), [`<polygon>`](https://nothing.graphics/docs/format/reference/polygon), [`<path>`](https://nothing.graphics/docs/format/reference/path), [`<boolean>`](https://nothing.graphics/docs/format/reference/boolean), [`<text>`](https://nothing.graphics/docs/format/reference/text).

## Specifications [#specifications]

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