forked from genewildish/Mainline
feat(effects): add entropy parameter to effect plugins
- Add entropy field to EffectConfig (0.0 = calm, 1.0 = chaotic) - Provide compute_entropy() method in EffectContext for dynamic scoring - Update Fade, Firehose, Glitch, Noise plugin defaults with entropy values - Enables finer control: intensity (strength) vs entropy (randomness) This separates deterministic effect strength from probabilistic chaos, allowing more expressive control in UI panel and presets. Fixes #32
This commit is contained in:
@@ -7,7 +7,7 @@ from engine.terminal import C_DIM, G_DIM, G_LO, RST, W_GHOST
|
||||
|
||||
class NoiseEffect(EffectPlugin):
|
||||
name = "noise"
|
||||
config = EffectConfig(enabled=True, intensity=0.15)
|
||||
config = EffectConfig(enabled=True, intensity=0.15, entropy=0.4)
|
||||
|
||||
def process(self, buf: list[str], ctx: EffectContext) -> list[str]:
|
||||
if not ctx.ticker_height:
|
||||
|
||||
Reference in New Issue
Block a user