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.


Cover of Functional Python Programming - Second Edition


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