How it works: This encoder generates a color palette with your specified hues and shades,
then converts your data into base-N (where N = total colors) and maps each digit to a pixel color.
More colors = more data capacity per pixel. The decoder reverses the process by finding the closest
matching color for each pixel.