File diff 353630bdfef6 → a9320f18b399
conntrackt/utils.py
Show inline comments
 
@@ -104,6 +104,12 @@ def get_distinct_colors(count, start=pal
 
        List of distinct palette.Color instances.
 
    """
 

	
 
    # If zero is passed as count, return empty list.
 
    if count == 0:
 
        return []
 
    elif count < 0:
 
        raise ValueError("Count must be a non-negative integer value.")
 

	
 
    # Read the HSL from provided Color.
 
    hue, sat, lum = start.hsl["h"], start.hsl["s"], start.hsl["l"]