fix(patterns): use preset background fallback across animations

Align pattern background rendering to use preset.background_or(...) and update pulse/radiate single-step behaviour to preserve visible frames and step progression.
This commit is contained in:
2026-05-09 14:28:05 +12:00
parent fbebe9f4f9
commit 4879fcfe90
20 changed files with 32 additions and 33 deletions

View File

@@ -16,7 +16,7 @@ class BarGraph:
target = (self.driver.num_leds * level) // 100
lit = self.driver.apply_brightness(colors[0], preset.b)
unlit = self.driver.apply_brightness(
colors[-1],
preset.background_or(colors),
preset.b,
)
for i in range(self.driver.num_leds):