Created
January 26, 2018 18:18
-
-
Save perfectmak/42baf6931e9dc4751f4f279118e8f4fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function quantize(k, colors) { | |
if (k > colors.length) { | |
throw Error(`K (${k}) is greater than colors (${colors.length}).`) | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment