Examples Variable Blur (p5.strands)

Variable Blur (p5.strands)

This demonstrates a custom blur shader in p5.strands. The blur is accomplished by adding a random offset to the coordinate at which the texture is sampled. By using only one sample, the blur ends up noisy. Try averaging a few samples to get a smoother blur!

Creative Commons BY-NC-SA license badge

Variable Blur (p5.strands): Created by Dave Pagurek. From 2026 onwards, edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.

You can find the code history of these examples here: Code. You can suggest improvements by contributing to the current website!