wash

The watercolor look: the layer inside flattened into soft patches of color over paper grain.

wash(slots: {
    at: GatherStage
    brush: KuwaharaBrush
    grain: GatherStage
    paper: PropRef
    paperColor: PropRef
    strength: PropRef
}): GatherEffect

Import effects from shaders/std and use effects.stylize.wash.

Closes the recipe and returns the effect for effect:. strength runs from 0 (the original) to 1 (the full wash). paper (0 to 1) sets how much grain shows and how far the result tints toward paperColor. at, brush and grain are the stages from bleedWarp, kuwahara and paperGrain.

Parameters

NameTypeNotes
slots`{
at: GatherStage
brush: KuwaharaBrush
grain: GatherStage
paper: PropRef
paperColor: PropRef
strength: PropRef

}` | |

Example

effect: wash({at: wet, brush: kuwahara({at: wet, radius: p('radius')}), grain: paperGrain({amount: p('paper')}), paper: p('paper'), paperColor: p('paperColor'), strength: p('strength')})

Tip. strength at 0 skips the whole effect. Give the prop recompile: crosses(0).

See also

  • kuwahara — A painter's brush: the flattening that turns fine detail into soft patches of one color.
  • bleedWarp — A sample position that drifts slowly past hard edges, so paint bleeds instead of stopping.
  • paperGrain — Fine paper grain for the pigment to settle into, one brightness value per screen pixel.

Used by

Watercolor