---
title: "kuwahara"
description: "A painter's brush: the flattening that turns fine detail into soft patches of one color."
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#L98"
---

# kuwahara

A painter's brush: the flattening that turns fine detail into soft patches of one color.

```ts
kuwahara(slots: {at: GatherStage; radius: PropRef}): KuwaharaBrush
```

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

`radius` is the brush size in logical pixels, 1 to 8, and must be a compile-time prop. `at` is the sample position, normally the same `bleedWarp` stage you hand to `wash`. Returns the brush for `wash`.

## Parameters

| Name | Type | Notes |
|---|---|---|
| `slots` | `{at: GatherStage; radius: PropRef}` |  |

## Example

```ts
brush: kuwahara({at: wet, radius: p('radius')})
```

> **Tip.** Mark `radius` `compileTime: true`. A hidden prop with a fixed default is the usual choice.

## See also

- [`wash`](/docs/primitives/effects-stylize/wash) — The watercolor look: the layer inside flattened into soft patches of color over paper grain.
- [`bleedWarp`](/docs/primitives/effects-stylize/bleedwarp) — A sample position that drifts slowly past hard edges, so paint bleeds instead of stopping.

## Used by

[Watercolor](/docs/components/watercolor)