Add setMode() and setPalette() methods

- automatically start transition
Implement load FX defaults for HTTP API (FXD)
This commit is contained in:
Blaž Kristan
2022-09-29 12:49:12 +02:00
parent 7cd9e8860d
commit f385af595a
6 changed files with 57 additions and 51 deletions

View File

@@ -114,8 +114,8 @@ class Animated_Staircase : public Usermod {
// We may need to copy mode and colors from segment 0 to make sure
// changes are propagated even when the config is changed during a wipe
// segments->mode = mainsegment.mode;
// segments->colors[0] = mainsegment.colors[0];
// seg.setMode(mainsegment.mode);
// seg.setColor(0, mainsegment.colors[0]);
} else {
seg.setOption(SEG_OPTION_ON, false);
}