palette-shader

GitHub

A dependency-free WebGL2 shader that visualizes a color palette by mapping a color space onto a plane or polar wheel, then snapping each pixel to the nearest palette color via a configurable distance metric. The six views above show the same palette across the X, Y and Z axes — the top row at one end, the bottom row at the other.