The Easiest Gradient effect - p5.js tutorial by Kazuki Umeda video also covered a few different things beyond the linear gradient.
You can use different shapes.


You can also make different types of gradients.
Radial


Changing starting x and starting y:


Changing ending r and ending y:


Conic


changing starting angle:

