This file contains 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
/* round num to c digits */ | |
function round(num, c) { | |
return +(Math.round(num + "e+" + c) + "e-" + c); | |
} | |
/* Adapted from Python from manojpandey, thanks! | |
https://gist.github.com/manojpandey/f5ece715132c572c80421febebaf66ae | |
*/ | |
function rgbTolab(inputColor) { |