---
title: "curlShading"
description: "The darkening in the crook of a curl, easing to full brightness at the lip."
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#L1358"
---

# curlShading

The darkening in the crook of a curl, easing to full brightness at the lip.

```ts
curlShading(frame: GatherFrame, opts: {shading: ArgSpec}): PeelShade
```

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

`shading` (0–1) is how deep the darkening goes.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `frame` | `GatherFrame` |  |
| `opts` | `{shading: ArgSpec}` |  |

## Example

```ts
curlShading(peel, {shading: p('shading')})
```

## See also

- [`peelFrame`](/docs/primitives/effects-blurs/peelframe) — The geometry of a page curling up from one corner: where the curl reads the child from, how far it has turned, and how far each pixel is from the crease.
- [`peelCompose`](/docs/primitives/effects-blurs/peelcompose) — A finished page peel: the cast shadows, the flat page and the lit curl, layered back to front.
- [`curlSheen`](/docs/primitives/effects-blurs/curlsheen) — The band of light running up a curl.

## Used by

[PagePeel](/docs/components/pagepeel)