in regular p5, paletteLerp lets you blend across multiple color stops at given positions, which is super handy for gradients. there is no equivalent inside p5.strands shaders right now, so anyone wanting a multi stop gradient on the gpu has to chain mix() calls or write their own helper.
would be cool to have something with similar ergonomics that works inside strands callbacks. exact api is up for discussion since strands has its own way of expressing things, but the goal would be feature parity with the cpu paletteLerp.
came out of the same call. opening this so it doesn't get lost.
in regular p5, paletteLerp lets you blend across multiple color stops at given positions, which is super handy for gradients. there is no equivalent inside p5.strands shaders right now, so anyone wanting a multi stop gradient on the gpu has to chain mix() calls or write their own helper.
would be cool to have something with similar ergonomics that works inside strands callbacks. exact api is up for discussion since strands has its own way of expressing things, but the goal would be feature parity with the cpu paletteLerp.
came out of the same call. opening this so it doesn't get lost.