---
title: "sobelTaps"
description: "Eight brightness samples in a ring around each pixel, for finding edges."
group: "effects"
groupTitle: "Filters & effects"
categoryId: "effects.stylize"
categorySlug: "effects-stylize"
categoryTitle: "Stylize"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/effects/stylize.ts#L220"
---

# sobelTaps

Eight brightness samples in a ring around each pixel, for finding edges.

```ts
sobelTaps(slots: {spacing: PropRef}): SobelRing
```

Import `effects` from `shaders/std` and use `effects.stylize.sobelTaps`.

`spacing` is the distance to the ring in device pixels (about 0.5 to 4; thicker strokes at larger values). Returns the ring for `chalkSketch`.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `{spacing: PropRef}` |  |

## Example

```ts
edges: sobelTaps({spacing: p('edgeThickness')})
```

## See also

- [`chalkSketch`](/docs/primitives/effects-stylize/chalksketch) — The chalk-drawing look: edges become chalk strokes and dark areas fill with cross-hatching.

## Used by

[Chalkboard](/docs/components/chalkboard)