p5.js
p5.js copied to clipboard
Add a function for interpolating between multiple colors
Increasing access
While interpolating between 2 colors is easy with the lerpColor()
function, interpolating between multiple can be annoying, and very difficult for beginners, especially for how commonly used and popular this feature is.
Most appropriate sub-area of p5.js?
- [ ] Accessibility
- [X] Color
- [ ] Core/Environment/Rendering
- [ ] Data
- [ ] DOM
- [ ] Events
- [ ] Image
- [ ] IO
- [ ] Math
- [ ] Typography
- [ ] Utilities
- [ ] WebGL
- [ ] Build process
- [ ] Unit testing
- [ ] Internationalization
- [ ] Friendly errors
- [ ] Other (specify if possible)
Feature request details
Create a function that accepts a list of colors and a value to interpolate between all of them.