CutBars function
A sound wave whose silent stretches turn red and close up: the pauses being cut. cuts are [from, to] bar numbers.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| count | number (8 to 90) | 46 | |
| cuts | list | [[8,13],[23,29],[36,40]] | [[from, to], …] in bars |
| w | number (300 to 1800) | 1200 | |
| h | number (60 to 800) | 240 | |
| at | number (0 to 60) | 0.7 | |
| color | color | "accent" | |
| cutColor | 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": "CutBars"}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.