randomColor.js
function getRealHueRange(colorHue)
  { if (!isNaN(colorHue)) {
    var number = parseInt(colorHue);

    if (number < 360 && number > 0) {
      return getColorInfo(colorHue).hueRange
    }
  }
    else if (typeof colorHue === 'string') {

      if (colorDictionary[colorHue]) {
        var color = colorDictionary[colorHue];

        if (color.hueRange) {
          return color.hueRange
       }
    } else if (colorHue.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)) {
        var hue = HexToHSB(colorHue)[0]
        return getColorInfo(hue).hueRange
    }
  }

    return [0,360]
}
function getRealHueRange(colorHue)
  { if (!isNaN(colorHue)) {
    var number = parseInt(colorHue);

    if (number < 360 && number > 0) {
      return getColorInfo(colorHue).hueRange
    }
  }
    else if (typeof colorHue === 'string') {

      if (colorDictionary[colorHue]) {
        var color = colorDictionary[colorHue];

        if (color.hueRange) {
          return color.hueRange
       }
    } else if (colorHue.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)) {
        var hue = HexToHSB(colorHue)[0]
        return getColorInfo(hue).hueRange
    }
  }

    return [0,360]
}
function getRealHueRange ( colorHue ) { if ( ! isNaN ( colorHue ) ) { var number = parseInt ( colorHue ) ; if ( number < 360 && number > 0 ) { return getColorInfo ( colorHue ) . hueRange } } else if ( typeof colorHue === 'string' ) { if ( colorDictionary [ colorHue ] ) { var color = colorDictionary [ colorHue ] ; if ( color . hueRange ) { return color . hueRange } } else if ( colorHue . match ( / ^#?([0-9A-F]{3}|[0-9A-F]{6})$ / i ) ) { var hue = HexToHSB ( colorHue ) [ 0 ] return getColorInfo ( hue ) . hueRange } } return [ 0 , 360 ] }
get The range of given hue when options.count!=0
get The range of given hue when options . count! = 0