How can I give every circle its own linear gradient? I don't find a solution to do this in p5.js?
function setup() {
createCanvas(400, 400);
noLoop(); //// make a static sketch
}
function draw() {
background(color(0,0,0));
noStroke();
fill(color(255,255,0));
circle(30, 30, 20);
fill(color(255,0,0));
circle(100, 120, 80);
fill(color(255,0,255));
circle(320, 280, 50);
}