# `<fill>`

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

Apply a stack of paints to the interior or to a span's assigned glyphs.



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

A fill paints the shape's interior. Under a span it supplies the local stack for glyphs assigned to that span.

## Syntax [#syntax]

### Place two paints in one fill [#place-two-paints-in-one-fill]

The right swatch places translucent teal above opaque navy. Sample around (144, 32) for approximately (50, 121, 145, 255). Move the navy to the top to restore its opaque color.

```xml
<fill>
  <paint><solid color="#193661FF"/></paint>
  <paint><solid color="#4ABCC080"/></paint>
</fill>
```

[Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/gradient-paint-stack.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), [`<span>`](https://nothing.graphics/docs/format/reference/span).

A shape has at most one fill. A span's fill replaces its inherited stack for the span's range. Descendant spans can supply their own. [Span paint order](https://nothing.graphics/docs/format/spec/text#appearance-and-editing)

## Children [#children]

| Elements                                                          | Cardinality | Declared by | Role and source order                                                                 |
| ----------------------------------------------------------------- | ----------- | ----------- | ------------------------------------------------------------------------------------- |
| [`<paint>`](https://nothing.graphics/docs/format/reference/paint) | One or more | `<fill>`    | Paint layers applied through the operation's coverage. Document order, bottom to top. |

## Specifications [#specifications]

* [Paint](https://nothing.graphics/docs/format/spec/graphics#paint)
