From 7ea07f1f9da8acf1f1b3ebc2234947ee176e7e6e Mon Sep 17 00:00:00 2001 From: Constantin Gierczak--Galle Date: Sat, 9 Dec 2023 17:52:42 +0100 Subject: [PATCH] Add some doc --- pyjecteur/common.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pyjecteur/common.py b/pyjecteur/common.py index 3a989bd..31fa9a2 100644 --- a/pyjecteur/common.py +++ b/pyjecteur/common.py @@ -42,10 +42,13 @@ class InterpType(Enum): LINEAR = 2 class Filling(Enum): + """ + How we fill a bar when the color ratio is not a perfect match + """ - VOID = 1 - EXTREMA = 2 - GREATEST = 3 + VOID = 1 # Fill with a "void" color + EXTREMA = 2 # Repeat both extrema values + GREATEST = 3 # Repeat the longest color streaks def blendLedBar(colors: List[Color], blending: Optional[InterpType] = InterpType.NEAREST,