LedCount function
A number in a dot-matrix face that jumps through a list of values, holding on each: 1, 100, 1,000, 1,000,000.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| values* | list of number | ||
| hold | number (0.1 to 20) | 0.55 | |
| size | number (40 to 800) | 220 | |
| color | color | "accent" | |
| family | string | "Doto" |
* 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": "LedCount", "values": [1, 100, 1000, 100000, 1000000]}How it is made#
This is one of the 8 components built by a short function, because it makes one node per row, scene or spoken word and data alone cannot loop like that. The function returns the same kind of tree as every other component, so what reaches the renderer is still plain elements and behaviors.