Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.
TypeScript agentic-aiaiai-agentsai-videocompilerdslffmpeggenerative-aillmmarkup-languagemonorepoplugin-systemprogramming-languagetext-to-videotypescriptvideovideo-automationvideo-clonevideo-editingvideo-generation
docs: anchor the caption soft effects to size, and stop promising a contraction that cannot happen (#72)
rponeawafd8b6ded840b
diff --git a/packages/caption-fine/src/manifest.ts b/packages/caption-fine/src/manifest.tsindex 5b4b27cc..0bd95283 100644--- a/packages/caption-fine/src/manifest.ts+++ b/packages/caption-fine/src/manifest.ts@@ -151,13 +151,13 @@ export const captionFineMarkupSurfaces = [{ name: "shadow-opacity", required: false, fallback: "0",summary: "Sets how strongly the glyph drop shadow reads." },{ name: "shadow-x", required: false, fallback: "0",- summary: "Offsets the glyph drop shadow horizontally in pixels." },+ summary: "Slides the whole shadow sideways, so its ink lands at this plus `shadow-spread` plus about one and a half times `shadow-blur` from the letter. A shadow that reads as depth rather than as a second copy of the word stays under its own blur: around a fortieth of `size`, 1px at 46." },{ name: "shadow-y", required: false, fallback: "0",- summary: "Offsets the glyph drop shadow vertically in pixels." },+ summary: "Drops the whole shadow, positive downward, reaching this plus `shadow-spread` plus about one and a half times `shadow-blur`. Down is the direction that runs out of room: the gap between line boxes is `line-height` minus one, times `size`, and past it the shadow lands on the line below. Around a fortieth of `size`, 1px at 46." },{ name: "shadow-blur", required: false, fallback: "0",summary: "Softens the glyph drop shadow by this many pixels. A shadow that only has to lift the caption off the picture is soft and short — a blur near a tenth of `size` with an offset a fraction of that. Much more and the shadow stops being an edge and becomes a grey cloud the letters sit in, which costs the contrast the shadow was there to protect." },{ name: "shadow-spread", required: false, fallback: "0",- summary: "Expands or contracts the glyph shadow shape before it is blurred." },+ summary: "Grows the shadow's silhouette before it is blurred, on every side. The shadow then reaches this plus the offset plus about one and a half times `shadow-blur`, so it is the smallest of the three: around a fiftieth of `size`, 1px at 46. Zero and below dilate nothing; the filter grows the shape and has no way to shrink it." },{ name: "long-shadow-color", required: false, fallback: "#000000",summary: "Paints the solid extruded shadow trailing each glyph." },{ name: "long-shadow-opacity", required: false, fallback: "0",@@ -173,7 +173,7 @@ export const captionFineMarkupSurfaces = [{ name: "glow-blur", required: false, fallback: "0",summary: "Spreads the glyph halo by this many pixels. A halo reads as a halo while it stays close to the glyph — near a tenth of `size`. Spread wide it stops tracing the letters, fills the space between them and washes the caption into a bright smear; the gaps between letters go first, exactly as they do under a heavy outline." },{ name: "glow-spread", required: false, fallback: "0",- summary: "Expands the glyph alpha before the halo is blurred." },+ summary: "Grows the letterform before the halo is blurred, hard-edged, on every side. It adds to the blur rather than replacing it — the halo reaches this plus about one and a half times `glow-blur` — so it is the smaller number of the two: around a fiftieth of `size`, 1px at 46. At a fifth of `size` the dilated letters touch before any softening and the counters close." },{ name: "active-fill", required: false, fallback: "#FFD54A",summary: "Paints the glyph body of the Word being spoken." },{ name: "active-opacity", required: false, fallback: "opacity",@@ -193,13 +193,13 @@ export const captionFineMarkupSurfaces = [{ name: "active-shadow-opacity", required: false, fallback: "shadow-opacity",summary: "Sets how strongly the active drop shadow reads." },{ name: "active-shadow-x", required: false, fallback: "shadow-x",- summary: "Offsets the active drop shadow horizontally in pixels." },+ summary: "Slides the spoken Word's shadow sideways. It inherits `shadow-x`, and the visible quantity is the difference: the shadow jumps by it as the Word becomes active and jumps back as it stops, which reads as the light moving mid-line." },{ name: "active-shadow-y", required: false, fallback: "shadow-y",- summary: "Offsets the active drop shadow vertically in pixels." },+ summary: "Drops the spoken Word's shadow, positive downward. It inherits `shadow-y`, and the visible quantity is the difference: the shadow steps down as the Word becomes active and back up as it stops, which reads as the Word lifting off the line." },{ name: "active-shadow-blur", required: false, fallback: "shadow-blur",- summary: "Softens the active drop shadow by this many pixels." },+ summary: "Softens the spoken Word's drop shadow, reaching about one and a half times this number. It inherits `shadow-blur`, and the visible quantity is the difference: any gap between the two reads as the Word sitting at a different depth from the words beside it." },{ name: "active-shadow-spread", required: false, fallback: "shadow-spread",- summary: "Expands or contracts the active glyph shadow before blur." },+ summary: "Grows the spoken Word's shadow silhouette before blur. It inherits `shadow-spread`, and the visible quantity is the difference. Zero and below dilate nothing; the filter grows the shape and has no way to shrink it." },{ name: "active-long-shadow-color", required: false, fallback: "long-shadow-color",summary: "Paints the extruded shadow trailing the Word being spoken." },{ name: "active-long-shadow-opacity", required: false, fallback: "long-shadow-opacity",@@ -215,7 +215,7 @@ export const captionFineMarkupSurfaces = [{ name: "active-glow-blur", required: false, fallback: "glow-blur",summary: "Spreads the active halo by this many pixels. Widening it is the usual way of trying to make the spoken Word stand out, and the usual way of losing it: the halo leaves the glyph, fills the gaps to its neighbours and blurs the very Word it was meant to pick out. The Word is already picked out by its own Paint — leave this near `glow-blur`." },{ name: "active-glow-spread", required: false, fallback: "glow-spread",- summary: "Expands the active glyph alpha before its halo is blurred." },+ summary: "Grows the spoken Word's letterform before its halo is blurred. It inherits `glow-spread`, and the visible quantity is the difference: the Word's halo is thicker than its neighbours' by exactly that, and the gap it closes first is `word-gap`." },{ name: "background", required: true,summary: "Paints the Cue box behind the Words, as an RGB or RGBA hex color." },{ name: "border-color", required: false, fallback: "#00000000",@@ -231,13 +231,13 @@ export const captionFineMarkupSurfaces = [{ name: "cue-shadow-opacity", required: false, fallback: "0",summary: "Sets the Cue box shadow opacity." },{ name: "cue-shadow-x", required: false, fallback: "0",- summary: "Offsets the Cue box shadow horizontally in pixels." },+ summary: "Slides the whole Cue box shadow sideways, so it clears the box on one side by this plus spread plus blur and is hidden behind it on the other. Kept under the blur it reads as depth; past it the shadow becomes a band beside the box." },{ name: "cue-shadow-y", required: false, fallback: "0",- summary: "Offsets the Cue box shadow vertically in pixels." },+ summary: "Drops the whole Cue box shadow, positive downward. Kept under `cue-shadow-blur` it reads as the box lifting off the picture; past it the shadow's top edge clears the box and shows as a bare band under it." },{ name: "cue-shadow-blur", required: false, fallback: "0",- summary: "Blurs the Cue box shadow in pixels." },+ summary: "Softens the Cue box shadow, reaching about this far past the box and no further. This is the one place the two shadow families differ: a glyph `shadow-blur` is halved into a deviation and reaches half again as far, while this number is the reach. Around a tenth of `size`, 5px at 46." },{ name: "cue-shadow-spread", required: false, fallback: "0",- summary: "Expands or contracts the Cue box shadow in pixels." },+ summary: "Grows the shadow rectangle before it is blurred, and unlike the glyph shadow it does contract: a negative spread equal to the blur pulls the shadow entirely behind the box. The edge sits at this plus `cue-shadow-blur` past every side, before any offset." },{ name: "underline", required: false, values: ["off", "always"], fallback: "off",summary: "Decides whether every Word carries a rule beneath it." },{ name: "underline-color", required: false, fallback: "fill",