2 ms·
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 ef
by rikroots 2y 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 https://scrawl-v8.rikweb.org.uk/demo/filters-027.html
- mattdesl 2y agoI quite like the look of the blue noise dithering on this. Are you using just a texture as a mask, or something else?
- rikroots 2y agoIt'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 http://momentsingraphics.de/BlueNoise.html No textures or masks, just brute computing on the CPU.