p5.js
p5.js copied to clipboard
saturation() issues
Hi Folks. I'm experiencing a problem with saturation that was first outlined in the now-closed ticket #1620. The saturation value of a color is not being returned correctly. Here's a sketch demonstrating the bug. https://editor.p5js.org/Joemckay/sketches/2NMSFqN7u I tested it with a number of versions of p5, including the 1.0.0 build. (I also tested my code in Processing and it's working there).