Hacker News new | ask | show | jobs
by rikroots 458 days ago
I moved my canvas library's reduce-palette filter over to OKLAB calculations a while back. The calculations are more computationally intensive, but worth the effort.

https://scrawl-v8.rikweb.org.uk/demo/filters-027.html

1 comments

I quite like the look of the blue noise dithering on this. Are you using just a texture as a mask, or something else?
It's an array of pre-calculated values that I extracted from an image donated to the Public Domain by Christoph Peters (the link is an interesting read about bluenoise - recommend!) - http://momentsingraphics.de/BlueNoise.html

No textures or masks, just brute computing on the CPU.