Closed TheoHiwo closed 2 years ago
Hi @Hiwoyn seems that the problem is with filter(GRAY)
, the filter works by determining lightness of every pixel. My guess is that it's using HSL to determine lightness, but HSL is notoriously bad at that. You can implement your own filter(GRAY)
using HSLuv simply by setting saturation to 0.
Feel free to reopen the issue if needed.
I'm learning javascript using p5js. When I was playing with hsluv library to do a color palette and add a gray filter, I encountered darker saturated red:
Maybe it's parseInt() or filter(GRAY) who are wrong?