function floorCount(value, yellow, yellowgreen, green) {
  if (value <= 0) {
    return 'red'
  } else if (value < yellow) {
    return 'yellow'
  } else if (value < yellowgreen) {
    return 'yellowgreen'
  } else if (value < green) {
    return 'green'
  } else {
    return 'brightgreen'
  }
}
Determines the color used for a badge by comparing the value and floor count values.
The color can vary from red to bright green depending on the range the value lies in.
Decreasing the value will shift the color towards red.
Increasing the value will shift the color towards bright green.

@param {number} value Current value
@param {number} yellow Yellow color threshold, should be greater than 0
@param {number} yellowgreen Yellowgreen color threshold, should be greater than yellow
@param {number} green Green color threshold, should be greater than yellowgreen
@returns {string} Badge color