Examples Gradient (p5.strands)

Gradient (p5.strands)

This demonstrates a radial gradient, lerping between two colors, based on two points. It runs in a full-screen filter shader.

Creative Commons BY-NC-SA license badge

Gradient (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!