add a paletteLerp equivalent for p5.strands
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 24k
- Forks
- 3.8k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 25
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the regular p5 paletteLerp behavior and the p5.strands shader callback model. Determine an API that fits strands while preserving multi-stop blending at specified positions, then confirm that the resulting helper provides feature parity for GPU gradients.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100