Closed RandomGamingDev closed 1 month ago
Here's what the new version requested using color stops uses:
function setup() {
createCanvas(400, 400);
}
function draw() {
background(lerpPalette([
["white", 0],
["red", 0.05],
["green", 0.25],
["blue", 1]
], millis() / 10000 % 1));
}
Resolves #6959
Changes:
Add a function called
paletteLerp()
for lerping/interpolating between a list/palette of colors.Screenshots of the change:
PR Checklist
npm run lint
passes