kuwahara

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

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

NameTypeNotes
slots{at: GatherStage; radius: PropRef}

Example

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 — The watercolor look: the layer inside flattened into soft patches of color over paper grain.
  • bleedWarp — A sample position that drifts slowly past hard edges, so paint bleeds instead of stopping.

Used by

Watercolor