Add some doc
This commit is contained in:
parent
9e06823fed
commit
7ea07f1f9d
1 changed files with 6 additions and 3 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue