p5.js icon indicating copy to clipboard operation
p5.js copied to clipboard

Add a function for interpolating between multiple colors

Open RandomGamingDev opened this issue 2 months ago • 9 comments

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.

RandomGamingDev avatar Apr 11 '24 11:04 RandomGamingDev