示例 / moon-phases
Why the Moon has phases
1:22科学由智能体用 VisoTalk Agent SKILL 制作
影片的 1080p 视频,带旁白。“实时”则在你的浏览器里直接从文档播放。
旁白
点击一句话即可跳到那里。
它展示了什么。 一幅贯穿始终的画面:单一角度在说出每个月相名称的词上补间,太阳、地球和月亮都由它画出。同一份文档还能画出浅色主题版本:部件从主题中读取非令牌的颜色,因此无需重画任何东西。
源码文档的第一个场景
视频就是这份文档。旁白是每个 Line 的文字,每个动画都从其中的某个词开始,就在这个词被说出的时候。
<Scene id="change">
<Line id="m1" hold={0.3}>Look up on different nights and the Moon seems to change shape: a sliver, a half, a full disc.</Line>
<Line id="m2" hold={1}>But the Moon does not change shape. It only looks like it does.</Line>
<Part id="t-change" x={96} y={44} w={1500} h={56}><Kicker>A month of Moons</Kicker></Part>
<Part id="phases"><PhaseDiscs /></Part>
<Part id="n-same" x={360} y={140} w={1200} h={72}><Note color="data">Same Moon, different light</Note></Part>
<Animation>
<Appear target="t-change" at="start" />
<Appear target="phases" line="m1" word="sliver" dur={0} />
<Appear target="sliver" line="m1" word="sliver" />
<Appear target="half" line="m1" word="half" />
<Appear target="full-disc" line="m1" word="full disc" />
<Tween target="phases" to={{whole: 1}} line="m2" word="does not change shape" dur={1.4} />
<Appear target="n-same" line="m2" word="only looks" />
</Animation>
</Scene>在 GitHub 上查看 examples/moon-phases/doc.tsx改编做成你自己的
整个示例打包成一个文件:文档、它用到的图片和片段,以及已经朗读好的旁白。在 VisoTalk Studio 中导入它(首页上的导入 .visotalk)即可在那里修改,或者用 npx visotalk import moon-phases.visotalk 为 Agent SKILL 解包。