agentcut 0.2.3 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/studio/tools.js +17 -2
- package/dist/studio/tools.js.map +1 -1
- package/dist/studio/workspace.js +4 -0
- package/dist/studio/workspace.js.map +1 -1
- package/package.json +1 -1
- package/template/components/CATALOG.md +52 -0
- package/template/components/README.md +70 -61
- package/template/components/STYLES.md +2 -0
- package/template/components/catalog.json +477 -0
- package/template/components/catalog.ts +4 -0
- package/template/components/cinematic/Cinematic.tsx +1139 -0
- package/template/components/cinematic/Device3D.tsx +299 -0
- package/template/components/cinematic/devices3d/display-model.ts +184 -0
- package/template/components/cinematic/devices3d/iphone-model.ts +643 -0
- package/template/components/cinematic/devices3d/macbook-model.ts +553 -0
- package/template/components/cinematic/devices3d/models.ts +612 -0
- package/template/components/cinematic/devices3d/runtime.ts +258 -0
- package/template/components/cinematic/math.ts +100 -0
- package/template/components/dot-trace-title/DotTraceTitle.tsx +181 -0
- package/template/components/dot-trace-title/meta.json +51 -0
- package/template/components/generate/GenerateReveal.tsx +381 -0
- package/template/components/index.ts +36 -0
- package/template/components/lib.ts +18 -6
- package/template/components/loops/LoopCanvas.tsx +132 -0
- package/template/components/loops/engine.ts +184 -0
- package/template/components/loops/library.ts +667 -0
- package/template/components/loops/library2.ts +777 -0
- package/template/components/motion-loop/MotionLoop.tsx +37 -0
- package/template/components/motion-loop/meta.json +312 -0
- package/template/runtime/composition.tsx +927 -920
- package/template/skill/SKILL.md +20 -3
- package/template/skill/references/browser-export.md +61 -61
- package/template/skill/references/cinematic.md +171 -0
- package/template/skill/references/loops.md +151 -0
- package/template/skill/references/performance.md +81 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AbsoluteFill, useCurrentFrame } from "remotion";
|
|
2
|
+
import { exitOut, ramp } from "../lib";
|
|
3
|
+
import type { LoopTone } from "../loops/engine";
|
|
4
|
+
import { LoopCanvas } from "../loops/LoopCanvas";
|
|
5
|
+
import type { MotionBaseProps } from "../types";
|
|
6
|
+
|
|
7
|
+
type Props = MotionBaseProps & {
|
|
8
|
+
loop: string;
|
|
9
|
+
tone: LoopTone;
|
|
10
|
+
accent: string;
|
|
11
|
+
accent2: string;
|
|
12
|
+
speed: number;
|
|
13
|
+
seed: number;
|
|
14
|
+
transparent: boolean;
|
|
15
|
+
blur: number;
|
|
16
|
+
fade: boolean;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** A library loop as a timeline clip: brand palette, tone, speed and layout from the inspector. */
|
|
20
|
+
export function MotionLoop(props: Props) {
|
|
21
|
+
const frame = useCurrentFrame();
|
|
22
|
+
const opacity = props.fade ? ramp(frame, 0, 10) * exitOut(frame, props.durationInFrames, 10) : 1;
|
|
23
|
+
return (
|
|
24
|
+
<AbsoluteFill style={{ opacity }}>
|
|
25
|
+
<LoopCanvas
|
|
26
|
+
loop={props.loop}
|
|
27
|
+
tone={props.tone}
|
|
28
|
+
accent={props.accent}
|
|
29
|
+
accent2={props.accent2}
|
|
30
|
+
speed={props.speed}
|
|
31
|
+
seed={props.seed}
|
|
32
|
+
transparent={props.transparent}
|
|
33
|
+
blur={props.blur}
|
|
34
|
+
/>
|
|
35
|
+
</AbsoluteFill>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "motion-loop",
|
|
3
|
+
"name": "Motion Loop",
|
|
4
|
+
"category": "Backgrounds",
|
|
5
|
+
"description": "A seamless motion loop in your brand colours: 44 loops across backgrounds, shapes, symmetry (kaleidoscope, mandala, spirograph), shape morphing, little games (snake, pong, falling blocks, Game of Life), physics (Newton's cradle, gears, dominoes) and generative pieces, each a pure function of time that never shows a seam.",
|
|
6
|
+
"useWhen": "Behind titles, product shots, quotes and end cards; between shots; as a shape centerpiece over a background (transparent). Rotate loops: never the same loop twice in a row, and pick by mood (see each option). Set accent/accent2 to the brand colours and choose the tone: dark (deep brand background), accent (solid brand colour), light (paper). Change seed for another layout of the same loop.",
|
|
7
|
+
"durationInFrames": 360,
|
|
8
|
+
"layer": "full",
|
|
9
|
+
"tags": [
|
|
10
|
+
"loop",
|
|
11
|
+
"background",
|
|
12
|
+
"motion graphics",
|
|
13
|
+
"shapes",
|
|
14
|
+
"pattern",
|
|
15
|
+
"brand",
|
|
16
|
+
"seamless",
|
|
17
|
+
"abstract"
|
|
18
|
+
],
|
|
19
|
+
"props": {
|
|
20
|
+
"loop": {
|
|
21
|
+
"type": "select",
|
|
22
|
+
"label": "Loop",
|
|
23
|
+
"default": "gradient-blobs",
|
|
24
|
+
"options": [
|
|
25
|
+
{
|
|
26
|
+
"value": "perspective-grid",
|
|
27
|
+
"label": "Perspective Grid · Backgrounds"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"value": "dot-wave",
|
|
31
|
+
"label": "Dot Wave · Backgrounds"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"value": "flow-lines",
|
|
35
|
+
"label": "Flow Lines · Backgrounds"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"value": "gradient-blobs",
|
|
39
|
+
"label": "Gradient Blobs · Backgrounds"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"value": "stripes-scroll",
|
|
43
|
+
"label": "Stripe Scroll · Backgrounds"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"value": "concentric-pulse",
|
|
47
|
+
"label": "Concentric Pulse · Backgrounds"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"value": "checker-twist",
|
|
51
|
+
"label": "Checker Twist · Backgrounds"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"value": "halftone-sweep",
|
|
55
|
+
"label": "Halftone Sweep · Backgrounds"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"value": "terrain-ridges",
|
|
59
|
+
"label": "Terrain Ridges · Backgrounds"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"value": "starfield-warp",
|
|
63
|
+
"label": "Starfield Warp · Backgrounds"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"value": "bokeh-drift",
|
|
67
|
+
"label": "Bokeh Drift · Backgrounds"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"value": "iso-cubes",
|
|
71
|
+
"label": "Iso Cubes · Backgrounds"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"value": "ribbon-weave",
|
|
75
|
+
"label": "Ribbon Weave · Backgrounds"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"value": "tile-mosaic",
|
|
79
|
+
"label": "Tile Mosaic · Backgrounds"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"value": "orbit-rings",
|
|
83
|
+
"label": "Orbit Rings · Shapes"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"value": "morph-blob",
|
|
87
|
+
"label": "Morph Blob · Shapes"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"value": "bouncing-ball",
|
|
91
|
+
"label": "Bouncing Ball · Shapes"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"value": "spinner-petals",
|
|
95
|
+
"label": "Spinner Petals · Shapes"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"value": "stacked-squares",
|
|
99
|
+
"label": "Stacked Squares · Shapes"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"value": "ripple-drop",
|
|
103
|
+
"label": "Ripple Drop · Shapes"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"value": "cube-spin",
|
|
107
|
+
"label": "Cube Spin · Shapes"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"value": "dna-helix",
|
|
111
|
+
"label": "DNA Helix · Shapes"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"value": "pie-burst",
|
|
115
|
+
"label": "Pie Burst · Shapes"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"value": "wave-bars",
|
|
119
|
+
"label": "Wave Bars · Shapes"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"value": "kaleidoscope",
|
|
123
|
+
"label": "Kaleidoscope · Symmetry"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"value": "mandala-bloom",
|
|
127
|
+
"label": "Mandala Bloom · Symmetry"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"value": "spirograph",
|
|
131
|
+
"label": "Spirograph · Symmetry"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"value": "mirror-tiles",
|
|
135
|
+
"label": "Mirror Tiles · Symmetry"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"value": "radial-burst",
|
|
139
|
+
"label": "Radial Burst · Symmetry"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"value": "shape-morph",
|
|
143
|
+
"label": "Shape Morph · Morphing"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"value": "morph-grid",
|
|
147
|
+
"label": "Morph Grid · Morphing"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"value": "shape-shuffle",
|
|
151
|
+
"label": "Shape Shuffle · Morphing"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"value": "metaballs",
|
|
155
|
+
"label": "Metaballs · Morphing"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"value": "snake-game",
|
|
159
|
+
"label": "Snake · Games"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"value": "falling-blocks",
|
|
163
|
+
"label": "Falling Blocks · Games"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"value": "pong",
|
|
167
|
+
"label": "Pong · Games"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"value": "life-gliders",
|
|
171
|
+
"label": "Life Gliders · Games"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"value": "newtons-cradle",
|
|
175
|
+
"label": "Newton's Cradle · Physics"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"value": "clock-gears",
|
|
179
|
+
"label": "Clock Gears · Physics"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"value": "liquid-fill",
|
|
183
|
+
"label": "Liquid Fill · Physics"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"value": "domino-wave",
|
|
187
|
+
"label": "Domino Wave · Physics"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"value": "vortex",
|
|
191
|
+
"label": "Vortex · Generative"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"value": "lissajous-trail",
|
|
195
|
+
"label": "Lissajous Trail · Generative"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"value": "bubble-pop",
|
|
199
|
+
"label": "Bubble Pop · Generative"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"tone": {
|
|
204
|
+
"type": "select",
|
|
205
|
+
"label": "Tone",
|
|
206
|
+
"default": "dark",
|
|
207
|
+
"options": [
|
|
208
|
+
{
|
|
209
|
+
"value": "dark",
|
|
210
|
+
"label": "Dark (deep brand)"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"value": "accent",
|
|
214
|
+
"label": "Accent (brand colour)"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"value": "light",
|
|
218
|
+
"label": "Light (paper)"
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
"accent": {
|
|
223
|
+
"type": "color",
|
|
224
|
+
"style": "accent",
|
|
225
|
+
"label": "Brand colour",
|
|
226
|
+
"default": "#7c5cff"
|
|
227
|
+
},
|
|
228
|
+
"accent2": {
|
|
229
|
+
"type": "color",
|
|
230
|
+
"label": "Second colour",
|
|
231
|
+
"default": "#ff5ca8"
|
|
232
|
+
},
|
|
233
|
+
"speed": {
|
|
234
|
+
"type": "number",
|
|
235
|
+
"label": "Speed",
|
|
236
|
+
"default": 1,
|
|
237
|
+
"min": 0.25,
|
|
238
|
+
"max": 3,
|
|
239
|
+
"step": 0.25,
|
|
240
|
+
"unit": "×",
|
|
241
|
+
"help": "Any speed is seamless within the clip. To repeat the clip itself, make its length × speed a multiple of 12 s."
|
|
242
|
+
},
|
|
243
|
+
"seed": {
|
|
244
|
+
"type": "number",
|
|
245
|
+
"label": "Layout",
|
|
246
|
+
"default": 0,
|
|
247
|
+
"min": 0,
|
|
248
|
+
"max": 99,
|
|
249
|
+
"step": 1
|
|
250
|
+
},
|
|
251
|
+
"transparent": {
|
|
252
|
+
"type": "boolean",
|
|
253
|
+
"label": "Transparent",
|
|
254
|
+
"default": false,
|
|
255
|
+
"help": "No background: a shape over footage or another layer."
|
|
256
|
+
},
|
|
257
|
+
"blur": {
|
|
258
|
+
"type": "number",
|
|
259
|
+
"label": "Motion blur",
|
|
260
|
+
"default": 4,
|
|
261
|
+
"min": 1,
|
|
262
|
+
"max": 12,
|
|
263
|
+
"step": 1,
|
|
264
|
+
"help": "Sub-frames per frame in the export (the preview shows 1)."
|
|
265
|
+
},
|
|
266
|
+
"fade": {
|
|
267
|
+
"type": "boolean",
|
|
268
|
+
"label": "Fade in/out",
|
|
269
|
+
"default": true
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"examples": [
|
|
273
|
+
{
|
|
274
|
+
"name": "Brand mesh",
|
|
275
|
+
"props": {}
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "Synth grid",
|
|
279
|
+
"props": {
|
|
280
|
+
"loop": "perspective-grid",
|
|
281
|
+
"accent": "#22d3ee",
|
|
282
|
+
"accent2": "#f472b6"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "Paper dots",
|
|
287
|
+
"props": {
|
|
288
|
+
"loop": "dot-wave",
|
|
289
|
+
"tone": "light",
|
|
290
|
+
"accent": "#f97316"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "Orbit on brand",
|
|
295
|
+
"props": {
|
|
296
|
+
"loop": "orbit-rings",
|
|
297
|
+
"tone": "accent",
|
|
298
|
+
"accent": "#2563eb",
|
|
299
|
+
"accent2": "#facc15"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"name": "Iso city",
|
|
304
|
+
"props": {
|
|
305
|
+
"loop": "iso-cubes",
|
|
306
|
+
"accent": "#10b981",
|
|
307
|
+
"accent2": "#f59e0b"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"stillAt": 0.3
|
|
312
|
+
}
|