O'Reilly logo
  • Philippe Derome thinks this is interesting:

Once we have the palette of all 2,00,000 colors, we can apply the fast Manhattan distance to locate the nearest color in an output, such as the Crayola colors.

From

Cover of Functional Python Programming - Second Edition

Note

This seems to be left as an exercise to the reader! Not shown.