Add some doc

This commit is contained in:
Constantin Gierczak--Galle 2023-12-09 17:52:42 +01:00
parent 9e06823fed
commit 7ea07f1f9d

View file

@ -42,10 +42,13 @@ class InterpType(Enum):
LINEAR = 2 LINEAR = 2
class Filling(Enum): class Filling(Enum):
"""
How we fill a bar when the color ratio is not a perfect match
"""
VOID = 1 VOID = 1 # Fill with a "void" color
EXTREMA = 2 EXTREMA = 2 # Repeat both extrema values
GREATEST = 3 GREATEST = 3 # Repeat the longest color streaks
def blendLedBar(colors: List[Color], def blendLedBar(colors: List[Color],
blending: Optional[InterpType] = InterpType.NEAREST, blending: Optional[InterpType] = InterpType.NEAREST,