Skip to content

add a paletteLerp equivalent for p5.strands #8751

@Nixxx19

Description

@Nixxx19

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions