halftone¶
type: "halftone"
Print-style halftone dots whose size follows the pixel luminance.
Fields¶
Every screen effect also accepts
screen_layerand the shared definition fields (duration,easing,loop,persistent,fade_ticks,sound).
| Field | Type | Default | Meaning |
|---|---|---|---|
cell_size |
float | 5 | Dot cell size in pixels |
angle |
float | 45 | Screen angle in degrees |
gain |
float | 2.5 | Contrast around mid grey (2.5 = neutral) |
amount |
float | 1 (fades to 0) | Dot pattern visibility |
Example¶
{
"type": "halftone",
"duration": 60,
"params": { "cell_size": 5, "angle": 45, "gain": 2.5, "amount": 1 }
}
Code¶
Its datapack definition: