afterimage¶
type: "afterimage"
Feedback echo: movement leaves smearing trails that linger and dissolve on a fixed decay schedule.
Fields¶
Every screen effect also accepts
screen_layerand the shared definition fields (duration,easing,loop,persistent,fade_ticks,sound).
| Field | Type | Default | Meaning |
|---|---|---|---|
decay |
float | 0.92 | Fraction of the previous frame surviving each tick (0..0.98) |
blend |
float | 0.6 | How strongly history mixes into the live image |
drift |
float | 0 | Per-frame zoom of the echo, positive stretches outward (negative = shrink) |
desat |
float | 0.35 | Saturation loss in the echo layer |
intensity |
float | 1 (fades to 0) | Strength of the echo over the live frame |
Example¶
{
"type": "afterimage",
"duration": 60,
"params": { "decay": 0.92, "blend": 0.6, "drift": 0, "desat": 0.35, "intensity": 1 }
}
Code¶
Its datapack definition:
{
"type": "afterimage",
"duration": 160,
"easing": "ease_in_out_cubic",
"persistent": true,
"loop": true,
"fade_ticks": 12,
"params": {
"decay": 0.9,
"blend": 0.4,
"drift": {
"keyframes": [
{
"time": 0,
"value": 0.0
},
{
"time": 80,
"value": 0.03
},
{
"time": 160,
"value": 0.0
}
]
},
"desat": 0.3,
"intensity": {
"keyframes": [
{
"time": 0,
"value": 0.25
},
{
"time": 80,
"value": 0.7
},
{
"time": 160,
"value": 0.25
}
]
}
}
}