PosterMarks data
The small technical marks of a printed poster: a crosshair, a dashed circle, a barcode, two rules and tiny labels. Lay it over a composition to make it read as designed.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| color | color | "ink" | |
| label | string | "FIG. 01" | |
| note | string | "STUDY / MOTION" |
* 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": "PosterMarks"}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": "fill",
"h": "fill",
"children": [
{
"el": "shape",
"kind": "rect",
"w": 900,
"h": 2,
"fill": "$color",
"place": [0.5, 0.06],
"origin": "left",
"motion": [{"do": "enter", "from": {"scaleX": 0}, "curve": "snap"}]
},
{
"el": "shape",
"kind": "rect",
"w": 2,
"h": 520,
"fill": "$color",
"place": [0.9, 0.3],
"origin": "top",
"motion": [{"do": "enter", "from": {"scaleY": 0}, "delay": 0.1, "curve": "snap"}]
},
{
"el": "shape",
"kind": "ring",
"w": 620,
"h": 620,
"stroke": "$color",
"strokeW": 0.5,
"fill": "transparent",
"place": [0.72, 0.5],
"opacity": 0.6,
"motion": [
{"do": "draw", "curve": {"ease": "inOut", "duration": 1.2}},
{"do": "loop", "kind": "spin", "period": 30}
]
},
{
"el": "box",
"dir": "stack",
"w": 60,
"h": 60,
"place": [0.12, 0.16],
"children": [
{"el": "shape", "kind": "rect", "w": 60, "h": 2, "fill": "$color"},
{"el": "shape", "kind": "rect", "w": 2, "h": 60, "fill": "$color"}
]
},
{
"el": "box",
"dir": "row",
"gap": 4,
"align": "end",
"place": [0.14, 0.9],
"children": [
{
"$each": 22,
"node": {"el": "shape", "kind": "rect", "w": "=2+6*rand(index)", "h": 70, "fill": "$color"}
}
]
},
{
"el": "text",
"text": "$label",
"size": 34,
"weight": 600,
"font": "mono",
"color": "$color",
"place": [0.82, 0.09]
},
{
"el": "text",
"text": "$note",
"size": 34,
"weight": 500,
"font": "mono",
"color": "$color",
"place": [0.24, 0.94]
}
]
}