# `<blur>`

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

Apply one isotropic Gaussian convolution.

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

Under a source filter, blur the previous image in premultiplied linear sRGB with transparent black beyond its image. Under a backdrop filter, read accumulated paint using the parent scope's sampling boundary.

## Syntax [#syntax]

### Measure a local blur under camera zoom [#measure-a-local-blur-under-camera-zoom]

The camera zoom of two maps local sigma 2 to four picture pixels. At (35, 16), alpha is about 24 in this backdrop example.

```xml
<blur sigma="2"/>
```

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

## Usage context [#usage-context]

Allowed parents are [`<filter>`](https://nothing.graphics/docs/format/reference/filter), [`<backdrop-filter>`](https://nothing.graphics/docs/format/reference/backdrop-filter).

Includes [Gaussian blur](https://nothing.graphics/docs/format/reference/gaussian-blur).

A source filter admits repeated blur steps. A backdrop filter requires exactly one. [Backdrop blur](https://nothing.graphics/docs/format/spec/filters#backdrop-blur)

## Attributes [#attributes]

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

### `sigma` [#sigma]

**Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Gaussian blur](https://nothing.graphics/docs/format/reference/gaussian-blur#sigma)

Nonnegative Gaussian standard deviation. Zero copies the input to the blur stage.

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

* [Source filter operations](https://nothing.graphics/docs/format/spec/filters#operations)
* [Evaluating animation tracks](https://nothing.graphics/docs/format/spec/animation#evaluation)
