First, I do know how to make gradients when it's formed within a square shape as its' a default shape when making manual gradients with for
loops and lerpColor
.
I am trying to create ideally any shape, in this case an ellipse that will have a linear gradient as a fill color. What I will do with this gradient is that I will have it animate across the page, so that it will create various shapes with the gradient.
I went to the p5.js example page to look for creating gradients, however I only managed to find gradients made manually using line()
, stroke()
and lerpColor
. I looked around Processing forums and this Medium article though I don't have an understanding on Processing syntax.
Is there a way to tackle this?