# `<ellipse>`

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

Define an oval contour in a registered local box.



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

An ellipse's registration box is twice the horizontal radius wide and twice the vertical radius high.

## Syntax [#syntax]

### Resize an off-center ellipse with an attached marker [#resize-an-off-center-ellipse-with-an-attached-marker]

At frame 4 the horizontal radius is 8 and the vertical radius is 4. After the shape’s rotation, the ellipse center is at (60, 44) and the blue marker stays on the sampled box edge at (60, 52).

```xml
<ellipse rx="8" ry="4" anchor-v="-0.5" offset-x="16" offset-y="-4">
  <animate attributeName="rx" fill="freeze">
    <key frame="0" value="0" ease="linear"/>
    <key frame="8" value="16"/>
  </animate>
  <animate attributeName="offset-x" fill="freeze">
    <key frame="0" value="12" ease="linear"/>
    <key frame="8" value="28"/>
  </animate>
  <animate attributeName="anchor-u" fill="freeze">
    <key frame="0" value="0" ease="linear"/>
    <key frame="8" value="1"/>
  </animate>
</ellipse>
```

[Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/rotated-ellipse.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/boxed-geometry/README.md#a-rotated-ellipse-with-two-children)

## 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 [Registration](https://nothing.graphics/docs/format/reference/registration).

## Attributes [#attributes]

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

### `rx` [#rx]

**Value** local units · **Required** · **Keys** Scalar

Nonnegative horizontal radius. Zero produces no filled area.

### `ry` [#ry]

**Value** local units · **Required** · **Keys** Scalar

Nonnegative vertical radius. Zero produces no filled area.

### `anchor-u` [#anchor-u]

**Value** fraction of width · **If omitted** `0.5` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#anchor-u)

Horizontal registration. Zero selects the left edge and one the right edge. Values outside that interval extrapolate.

### `anchor-v` [#anchor-v]

**Value** fraction of height · **If omitted** `0.5` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#anchor-v)

Vertical registration. Zero selects the top edge and one the bottom edge. Values outside that interval extrapolate.

### `offset-x` [#offset-x]

**Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#offset-x)

Horizontal coordinate of the registered point.

### `offset-y` [#offset-y]

**Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Registration](https://nothing.graphics/docs/format/reference/registration#offset-y)

Vertical coordinate of the registered point.

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

* [Size, registration and offset](https://nothing.graphics/docs/format/spec/boxed-geometry#size-registration-and-offset)
* [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation)
