From 844bf74f54953085fe436b1e2ca0237f9fca1af6 Mon Sep 17 00:00:00 2001 From: Constantin Gierczak--Galle Date: Fri, 15 Dec 2023 11:17:19 +0100 Subject: [PATCH] thing --- pyjecteur/common.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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