lib/util/valueProcessor.js
function processValue(value) {
    if (isNaN(value)) return 0;

    value = Math.max(MIN_VALUE, Math.min(value, MAX_VALUE));

    //value is between 0 and 1, thus is interpreted as percentage
    if (value < 1) value = value * MAX_VALUE;

    value = parseInt(value, 10);

    return value;
}
function processValue(value) {
    if (isNaN(value)) return 0;

    value = Math.max(MIN_VALUE, Math.min(value, MAX_VALUE));

    //value is between 0 and 1, thus is interpreted as percentage
    if (value < 1) value = value * MAX_VALUE;

    value = parseInt(value, 10);

    return value;
}
function processValue ( value ) { if ( isNaN ( value ) ) return 0 ; value = Math . max ( MIN_VALUE , Math . min ( value , MAX_VALUE ) ) ; //value is between 0 and 1, thus is interpreted as percentage if ( value < 1 ) value = value * MAX_VALUE ; value = parseInt ( value , 10 ) ; return value ; }
sanitizes brightness values and does a gamma correction mapping
@param value
@return {*}
sanitizes brightness values and does a gamma correction mapping