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:
jimmy committed 2026-05-09 14:28:05 +12:00
1 parent fbebe9f4f9
commit 4879fcfe90
20 files changed
+32 -33

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ class Twinkle:
"""Twinkle: n1 activity, n2 density; n3/n4 min/max length of adjacent on/off runs."""
palette = self._palette(preset)
num = self.driver.num_leds
bg_color = self.driver.apply_brightness(palette[-1], preset.b)
bg_color = self.driver.apply_brightness(preset.background_or(palette), preset.b)
if num <= 0:
while True:
yield