image-palette-webgpu-demo

image-palette-webgpu is a tiny zero-dependency browser package that extracts dominant color or color palette from an image using WebGPU API with various algorithms: Wu, Weighted-Square K-Means and Celebi (Wu + K-Means). The computations are done on the GPU with compute shaders.