In this post, I want to talk about how to create a gradient line in p5.js. But first, let’s look at how we can do this without using any libraries with HTML5 Canvas API.
Gradient lines and brushes with linear interpolation
#p5js #javascript #web-development #programming