RecHud data
A small blinking REC mark for a corner of the frame.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| color | color | "bad" |
* 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": "RecHud"}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",
"dir": "row",
"gap": 12,
"align": "center",
"children": [
{
"el": "shape",
"kind": "circle",
"w": 22,
"fill": "$color",
"motion": [{"do": "loop", "kind": "blink", "period": 1.1}]
},
{"el": "text", "text": "REC", "size": 34, "weight": 700, "font": "mono", "color": "white"}
]
}