thing
This commit is contained in:
parent
f014c52c7b
commit
844bf74f54
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue