# `<drop-shadow>`

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

Composite the input above a tinted, offset blur of its alpha.



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

A drop shadow blurs and offsets the input alpha, tints it, then composites the input above it. The next filter operation receives both.

## Syntax [#syntax]

### Move a sharp cast below the input [#move-a-sharp-cast-below-the-input]

With sigma zero, the translucent source at (160, 27) casts a sharp shadow at (160, 71). This source and cast both have alpha 128.

```xml
<drop-shadow dx="0" dy="44" sigma="0" color="#F9AB52FF"/>
```

[Complete .nothing source](https://github.com/gridaco/nothing/blob/main/ncf/examples/inner-shadows.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).

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

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

### `dx` [#dx]

**Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style#dx)

Horizontal displacement, positive to the right.

### `dy` [#dy]

**Value** local units · **If omitted** `0` · **Keys** Scalar · **Declared by** [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style#dy)

Vertical displacement, positive down.

### `color` [#color]

**Value** `#RRGGBBAA` · **Required** · **Keys** Color channels · **Declared by** [Shadow style](https://nothing.graphics/docs/format/reference/shadow-style#color)

Required shadow tint in encoded sRGB with linear alpha. The filter converts the sampled color to its working space.

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