[WUT] AdamLvl 13
- Windows
I know it's possible to draw gradients like this:
noStroke();
for (var i = 0; i <= 400; i++) {
stroke("dodgerblue");
line(i, 0, i, 400);
stroke("magenta");
line(i, 400, i+1, 0);
}
...but that's wildly inefficient. Is there a more efficient way to draw gradients? Like, with a specific built-in function, perhaps?