function hsvToColorName(hsv) {
        var h = hsv.h, s = hsv.s, v = hsv.v;
        if (v <= 10) {
            return CONSTANTS.COLOR_ENUM.BLACK;
        }
        if ((h < 10 || h > 350) && s > 90 && v > 50) {
            return CONSTANTS.COLOR_ENUM.RED;
        }
        if (h > 40 && h < 70 && s > 90 && v > 50) {
            return CONSTANTS.COLOR_ENUM.YELLOW;
        }
        if (h < 50 && s > 50 && s < 100 && v < 50) {
            return CONSTANTS.COLOR_ENUM.BROWN;
        }
        if (s < 10 && v > 90) {
            return CONSTANTS.COLOR_ENUM.WHITE;
        }
        if (h > 70 && h < 160 && s > 80) {
            return CONSTANTS.COLOR_ENUM.GREEN;
        }
        if (h > 200 && h < 250 && s > 90 && v > 50) {
            return CONSTANTS.COLOR_ENUM.BLUE;
        }
        return CONSTANTS.COLOR_ENUM.NONE;
    }
/**
    * Map a hsv value to a color name.
    *
    * @memberOf exports
    * @param hsv value
    * @returns color
    */
Map a hsv value to a color name.
@memberOf exports
@param hsv value
@returns color
Map a hsv value to a color name . @memberOf exports @param hsv value @returns color
function hsvToColorName(hsv) {
        var h = hsv.h, s = hsv.s, v = hsv.v;
        if (v <= 10) {
            return CONSTANTS.COLOR_ENUM.BLACK;
        }
        if ((h < 10 || h > 350) && s > 90 && v > 50) {
            return CONSTANTS.COLOR_ENUM.RED;
        }
        if (h > 40 && h < 70 && s > 90 && v > 50) {
            return CONSTANTS.COLOR_ENUM.YELLOW;
        }
        if (h < 50 && s > 50 && s < 100 && v < 50) {
            return CONSTANTS.COLOR_ENUM.BROWN;
        }
        if (s < 10 && v > 90) {
            return CONSTANTS.COLOR_ENUM.WHITE;
        }
        if (h > 70 && h < 160 && s > 80) {
            return CONSTANTS.COLOR_ENUM.GREEN;
        }
        if (h > 200 && h < 250 && s > 90 && v > 50) {
            return CONSTANTS.COLOR_ENUM.BLUE;
        }
        return CONSTANTS.COLOR_ENUM.NONE;
    }
function hsvToColorName ( hsv ) { var h = hsv . h , s = hsv . s , v = hsv . v ; if ( v <= 10 ) { return CONSTANTS . COLOR_ENUM . BLACK ; } if ( ( h < 10 || h > 350 ) && s > 90 && v > 50 ) { return CONSTANTS . COLOR_ENUM . RED ; } if ( h > 40 && h < 70 && s > 90 && v > 50 ) { return CONSTANTS . COLOR_ENUM . YELLOW ; } if ( h < 50 && s > 50 && s < 100 && v < 50 ) { return CONSTANTS . COLOR_ENUM . BROWN ; } if ( s < 10 && v > 90 ) { return CONSTANTS . COLOR_ENUM . WHITE ; } if ( h > 70 && h < 160 && s > 80 ) { return CONSTANTS . COLOR_ENUM . GREEN ; } if ( h > 200 && h < 250 && s > 90 && v > 50 ) { return CONSTANTS . COLOR_ENUM . BLUE ; } return CONSTANTS . COLOR_ENUM . NONE ; }
Map a hsv value to a color name.
Map a hsv value to a color name .