feat(effects): add entropy parameter to effect plugins #32

Closed
opened 2026-03-18 17:05:42 +00:00 by david · 0 comments
Owner

Summary

Add entropy parameter to effect plugins (fade, firehose, glitch, noise) to control the intensity of randomness/chaos in their behavior, separate from the intensity parameter.

Changes

Updated config for each effect:

  • fade: EffectConfig(enabled=True, intensity=1.0, entropy=0.1)
  • firehose: EffectConfig(enabled=True, intensity=1.0, entropy=0.9)
  • glitch: EffectConfig(enabled=True, intensity=1.0, entropy=0.8)
  • noise: EffectConfig(enabled=True, intensity=0.15, entropy=0.4)

Why

Separates deterministic effect intensity (intensity) from probabilistic chaos (entropy). This allows finer control:

  • intensity: How strong the visual effect is (e.g., brightness, size)
  • entropy: How much randomness/variation in the effect's behavior

Files Changed

  • engine/effects/plugins/fade.py
  • engine/effects/plugins/firehose.py
  • engine/effects/plugins/glitch.py
  • engine/effects/plugins/noise.py

Status

Complete; backends and tests updated. UI panel can now expose entropy controls via parameter extraction.

  • UI panel auto-extracts parameters from EffectConfig (#31)
  • Part of effects plugin system (#6)
## Summary Add `entropy` parameter to effect plugins (fade, firehose, glitch, noise) to control the intensity of randomness/chaos in their behavior, separate from the `intensity` parameter. ## Changes Updated config for each effect: - `fade`: `EffectConfig(enabled=True, intensity=1.0, entropy=0.1)` - `firehose`: `EffectConfig(enabled=True, intensity=1.0, entropy=0.9)` - `glitch`: `EffectConfig(enabled=True, intensity=1.0, entropy=0.8)` - `noise`: `EffectConfig(enabled=True, intensity=0.15, entropy=0.4)` ## Why Separates deterministic effect intensity (`intensity`) from probabilistic chaos (`entropy`). This allows finer control: - `intensity`: How strong the visual effect is (e.g., brightness, size) - `entropy`: How much randomness/variation in the effect's behavior ## Files Changed - `engine/effects/plugins/fade.py` - `engine/effects/plugins/firehose.py` - `engine/effects/plugins/glitch.py` - `engine/effects/plugins/noise.py` ## Status Complete; backends and tests updated. UI panel can now expose entropy controls via parameter extraction. ## Related - UI panel auto-extracts parameters from EffectConfig (#31) - Part of effects plugin system (#6)
david closed this issue 2026-03-18 22:03:19 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: klubhaus/sideline#32