# `<backdrop-filter>`

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

Blur accumulated paint at a drawable's position in its parent scope.

## Examples

[Download the complete .nothing source](https://nothing.graphics/format/source-and-backdrop/source.nothing) · [Source on GitHub](https://github.com/gridaco/nothing/blob/main/ncf/conformance/backdrop/panel.nothing)

Rendered with ncf-preview at 64 × 32.

- [Frame 0 · Frosted panel](https://nothing.graphics/format/source-and-backdrop/0.webp). A sharp white stripe diffuses under the tinted panel. A thin red shadow extends to the panel’s right, and a yellow stripe paints sharply above the result.

```xml
<scene width="64" height="32" frame-rate="24" background="#000000FF">
  <shape>
    <rect anchor-u="0" anchor-v="0" offset-x="20" width="4" height="32"/>
    <fill><paint><solid color="#FFFFFFFF"/></paint></fill>
  </shape>
  <shape>
    <rect anchor-u="0" anchor-v="0" offset-x="10" offset-y="6" width="40" height="18" corner-radius="3"/>
    <backdrop-filter><blur sigma="3"/></backdrop-filter>
    <fill><paint><solid color="#3080C030"/></paint></fill>
    <filter><drop-shadow dx="4" dy="2" sigma="0" color="#FF0000FF"/></filter>
  </shape>
  <shape>
    <rect anchor-u="0" anchor-v="0" offset-x="28" width="2" height="32"/>
    <fill><paint><solid color="#FFFF00FF"/></paint></fill>
  </shape>
</scene>
```



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

A backdrop filter samples earlier paint in its parent scope. The owner can paint its own content and carry an independent source filter.

## Syntax [#syntax]

### Blur earlier paint through the panel [#blur-earlier-paint-through-the-panel]

The earlier white stripe stays white at (21, 2) outside the panel, darkens at (21, 14) inside it, and spreads light to (25, 14). A separate source filter casts the red shadow.

```xml
<backdrop-filter><blur sigma="3"/></backdrop-filter>
```

[Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/conformance/backdrop/panel.nothing) · [Sample checks](https://github.com/gridaco/nothing/blob/main/ncf/conformance/README.md#layer-effects)

## Usage context [#usage-context]

Allowed parents are [`<shape>`](https://nothing.graphics/docs/format/reference/shape), [`<group>`](https://nothing.graphics/docs/format/reference/group), [`<sequence>`](https://nothing.graphics/docs/format/reference/sequence).

A group or sequence requires an explicit mask. A shape can use its filled geometry as the default aperture. A shape mask further limits the effect within that filled geometry. The declaration's position among the owner's children has no effect on evaluation order.

## Children [#children]

| Elements                                                        | Cardinality | Declared by         | Role and source order                                                                                      |
| --------------------------------------------------------------- | ----------- | ------------------- | ---------------------------------------------------------------------------------------------------------- |
| [`<blur>`](https://nothing.graphics/docs/format/reference/blur) | Exactly one | `<backdrop-filter>` | One blur determines the backdrop kernel. Applied to earlier paint before the owner paints its own picture. |

## Specifications [#specifications]

* [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur)
