Here's a small thread of 5 useful but undocumented things you can do in #p5js (because they use drawingContext, the vanilla #javascript canvas API):
1. drawingContext.createLinearGradient() lets you create a gradient with as many colors as you want, at any angle you want, and lets use it as a fill style! developer.mozilla.org/en-US/docs/Web…