diff --git a/pyjecteur/common.py b/pyjecteur/common.py index 8c93849..6f92128 100644 --- a/pyjecteur/common.py +++ b/pyjecteur/common.py @@ -55,8 +55,8 @@ class Filling(Enum): def widen(colors: List[Color], width: int): L = [] - map(L.extend, [[e] * width for e in colors]) - return L + return map(L.extend, [[e] * width for e in colors]) + def blendLedBar_simple(colors: List[Color], length: int, @@ -83,9 +83,6 @@ def blendLedBar_simple(colors: List[Color], gap = length - total_len * factor - # TODO: Add GREATEST - # The idea is to first add a repetition to the already longest - # repetition to hurt the color ratio as little as possible if gap == 0: return reduplicate(deduped, rep_nb) # If there is still