PointCloud data
A cube of points turning in space: vectors, embeddings, "it understands".
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| count | number (4 to 400) | 70 | |
| size | number (60 to 1400) | 460 | |
| color | color | "accent" | |
| period | number (-120 to 120) | 10 |
* 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": "PointCloud"}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": "stack",
"w": "$size",
"h": "$size",
"perspective": 1300,
"motion": [{"do": "enter", "from": {"scale": 0.6, "opacity": 0}, "curve": "heavy"}],
"children": [
{
"el": "box",
"dir": "stack",
"w": 10,
"h": 10,
"space": true,
"motion": [{"do": "drive", "pose": {"rotateY": "=t/period*360", "rotateX": 16}}],
"children": [
{
"$each": "$count",
"node": {
"el": "shape",
"kind": "rect",
"w": "=8+10*rand(index,3)",
"h": "=8+10*rand(index,3)",
"radius": 3,
"fill": {"$if": "=rand(index,4)>0.7", "then": "white", "else": "$color"},
"motion": [
{
"do": "drive",
"pose": {
"x": "=(rand(index)-0.5)*size*0.8",
"y": "=(rand(index,1)-0.5)*size*0.8",
"z": "=(rand(index,2)-0.5)*size*0.8"
}
}
]
}
}
]
}
]
}