double_vision¶
type: "double_vision"
Two ghost copies of the frame offset left/right with a slow drift.
Fields¶
Every screen effect also accepts
screen_layerand the shared definition fields (duration,easing,loop,persistent,fade_ticks,sound).
| Field | Type | Default | Meaning |
|---|---|---|---|
offset |
float | 0.04 | Ghost distance from the centre, screen-width fractions (0..0.5) |
ghost_opacity |
float | 0.5 | Ghost opacity (0..1) |
drift |
float | 0 | Slow sinusoidal drift, screen fractions per second (0..0.2) |
intensity |
float | 1 (fades to 0) | Overall strength (0..1) |
Example¶
{
"type": "double_vision",
"duration": 60,
"params": { "offset": 0.04, "ghost_opacity": 0.5, "drift": 0, "intensity": 1 }
}
Code¶
Its datapack definition:
{
"type": "double_vision",
"duration": 160,
"easing": "ease_in_out_cubic",
"persistent": true,
"loop": true,
"fade_ticks": 12,
"params": {
"offset": {
"keyframes": [
{
"time": 0,
"value": 0.01
},
{
"time": 80,
"value": 0.05
},
{
"time": 160,
"value": 0.01
}
]
},
"ghost_opacity": 0.4,
"drift": 0.02,
"intensity": 1.0
}
}