public static function gauge($val, $floor = 0)
    {
        $colors = self::getGaugeColors();
        $key_size =    100 / count($colors);
        $key = floor($val / $key_size);
        return (array_key_exists((int) $key, $colors)) ? $colors[$key] : end($colors);
    }