Thanks! Essentially it splits the image into emoji-sized parts and finds the dominant color of that part using color-thief.js. It then converts the RGB value into the LAB color space and finds the closest emoji match using the CIE76 color difference algorithm. The emojis are also handpicked to ensure no small ones like the plane and car get in.
5 comments
[ 3.1 ms ] story [ 22.0 ms ] threadNice job!