---
title: "silhouetteCoverage"
description: "A soft copy of the child's alpha silhouette: a number per pixel from 0 to 1."
group: "effects"
groupTitle: "Filters & effects"
categoryId: "effects.blurs"
categorySlug: "effects-blurs"
categoryTitle: "Blurs, glows & screens"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/effects/blurs.ts#L1146"
---

# silhouetteCoverage

A soft copy of the child's alpha silhouette: a number per pixel from 0 to 1.

```ts
silhouetteCoverage(opts: {at: (params: RttFilterParams) => Expr; blur: ArgSpec}): (params: RttFilterParams) => Expr
```

Import `effects` from `shaders/std` and use `effects.blurs.silhouetteCoverage`.

`at` is where to read the silhouette from, usually `shadowOffset`. `blur` is the softness as a radius in pixels (0–20). Feed it to `shadowComposite` as the `coverage`.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `opts` | `{at: (params: RttFilterParams) => Expr; blur: ArgSpec}` |  |

## Example

```ts
silhouetteCoverage({at: shadowOffset({angle: 135, distance: 0.1}), blur: p('blur')})
```

## See also

- [`shadowOffset`](/docs/primitives/effects-blurs/shadowoffset) — The coordinate a shadow reads the child's silhouette from: `distance` away in the compass direction `angle`.
- [`shadowComposite`](/docs/primitives/effects-blurs/shadowcomposite) — A tinted shadow behind the child.

## Used by

[DropShadow](/docs/components/dropshadow)