Scrim data
Darkens the picture behind the speaker so type on top reads. strength 0–1.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| strength | number (0 to 1) | 0.5 | |
| tone | color | "black" |
* required. Every node also takes the common props: id, motion, start, place, scale, rotate, opacity, w, h. A colour is a palette name, never a value.
Parts#
Named parts can be restyled from outside without making a new component: "parts": { "root": { … } }.
| Part | Is a |
|---|---|
| root | box |
Example#
{"el": "Scrim", "strength": 0.5}How it is made#
This component is plain data. Its whole definition is the tree below: copy it into a scene's components list under a new name to make your own version. See Custom components.
{
"el": "box",
"w": 1080,
"h": 1920,
"fill": "$tone",
"opacity": "$strength",
"motion": [{"do": "enter", "from": "fade", "curve": "smooth"}]
}