# `<plane>`

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

Place a 2D paint scope on a surface in the spatial trial.



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

The proposed `<plane>` element carries 2D artwork on a double-sided surface. Each sample has the depth of its intersection with the plane.

## Syntax [#syntax]

### Tilt artwork across three focus depths [#tilt-artwork-across-three-focus-depths]

The spatial trial tilts three stationary marks through axial depths of 1000, 1150, and 1300 scene units. At frames 0, 12 and 24, the near, middle, and far mark respectively has the highest peak intensity. Their projected centers stay fixed.

```xml
<plane translate-x="-225" translate-z="-1000" rotate-y="30">
  <shape>
    <rect anchor-u="0" anchor-v="0" offset-x="-1" offset-y="-20" width="2" height="40"/>
    <fill><paint><solid color="#FFFFFFFF"/></paint></fill>
  </shape>
  <shape>
    <rect anchor-u="0" anchor-v="0" offset-x="299" offset-y="-20" width="2" height="40"/>
    <fill><paint><solid color="#FFFFFFFF"/></paint></fill>
  </shape>
  <shape>
    <rect anchor-u="0" anchor-v="0" offset-x="599" offset-y="-20" width="2" height="40"/>
    <fill><paint><solid color="#FFFFFFFF"/></paint></fill>
  </shape>
</plane>
```

[Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/cameras/perspective-focus.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#perspective-focus-pull)

## Usage context [#usage-context]

Allowed parents are [`<scene>`](https://nothing.graphics/docs/format/reference/scene).

Spatial trial.

Planes have no intrinsic bounds. Art on the same plane shares its paint scope. A referenced scene first resolves its own view. [Ratified perspective optics](https://nothing.graphics/docs/format/spec/perspective-camera-optics)

## Attributes [#attributes]

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

### `translate-x` [#translate-x]

**Value** scene units · **If omitted** `0` · **Keys** Scalar

Spatial trial. Horizontal translation of the plane origin.

### `translate-y` [#translate-y]

**Value** scene units · **If omitted** `0` · **Keys** Scalar

Spatial trial. Vertical translation of the plane origin.

### `translate-z` [#translate-z]

**Value** scene units · **If omitted** `0` · **Keys** Scalar

Spatial trial. Depth translation of the plane origin.

### `rotate-x` [#rotate-x]

**Value** degrees · **If omitted** `0` · **Keys** Scalar

Spatial trial. Signed angle about the x axis.

### `rotate-y` [#rotate-y]

**Value** degrees · **If omitted** `0` · **Keys** Scalar

Spatial trial. Signed angle about the y axis.

### `rotate` [#rotate]

**Value** degrees · **If omitted** `0` · **Keys** Scalar

Spatial trial. In-plane angle, clockwise in default scene coordinates.

## Children [#children]

| Elements                                                                                                                                                                                                      | Cardinality  | Declared by | Role and source order                                                                                                                                                                                                |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`<shape>`](https://nothing.graphics/docs/format/reference/shape), [`<group>`](https://nothing.graphics/docs/format/reference/group), [`<sequence>`](https://nothing.graphics/docs/format/reference/sequence) | Zero or more | `<plane>`   | Spatial trial. Level 1 artwork on this surface. Document order over transparent black in plane-local coordinates.                                                                                                    |
| [`<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]

* [Proposed plane authoring and depth](https://github.com/gridaco/nothing/blob/main/ncf/rfcs/spatial-cameras.md#scene-integration--editable-2d-artwork)
* [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation)
