# `<circle>`

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

Define a circular contour in a registered local box.



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

A circle's registration box has width and height equal to twice its radius. The default registration places the center at the local origin.

## Syntax [#syntax]

### Mark a drawable’s local origin [#mark-a-drawables-local-origin]

A radius of 2 makes the marker four units across. The first marker’s shape has no locator or translation. Its white center is at the enclosing shape’s scene origin (64, 24).

```xml
<circle r="2"/>
```

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

### `r` [#r]

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

Nonnegative circle 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)
