distortion¶
type: "distortion"
Barrel (amount > 0) / pincushion (amount < 0) distortion of the whole screen.
Fields¶
Every screen effect also accepts
screen_layerand the shared definition fields (duration,easing,loop,persistent,fade_ticks,sound).
| Field | Type | Default | Meaning |
|---|---|---|---|
amount |
float | 0.2 (fades to 0) | Distortion strength; sign picks the direction |
radius |
float | 0.8 | Screen fraction affected from the centre (0..1) |
Example¶
Code¶
Its datapack definition: