示例 / fourier
How a Fourier series builds a square wave
1:12数学由智能体用 VisoTalk Agent SKILL 制作
影片的 1080p 视频,带旁白。“实时”则在你的浏览器里直接从文档播放。
旁白
点击一句话即可跳到那里。
它展示了什么。 整部影片只有一幅画面:一个补间数值驱动部分和,随着每个正弦波在它的词上到来,曲线从正弦波逐渐变成方波。
源码文档的第一个场景
视频就是这份文档。旁白是每个 Line 的文字,每个动画都从其中的某个词开始,就在这个词被说出的时候。
<Scene id="hook">
<Line id="l1">A square wave looks nothing like a sine wave: it jumps, and then it sits perfectly flat.</Line>
<Line id="l2">Yet add enough sine waves together, and you can build it exactly.</Line>
<Animation>
<Appear target={["scope", "axis"]} at="start" />
<Appear target="ghost" line="l1" word="square wave" />
<Tween target="scope" to={{draw: 1}} line="l1" word="square wave" dur={2.2} easing="easeInOut" />
<Appear target="sum" line="l1" word="sine wave" />
<Tween target="scope" to={{n: 25}} line="l2" word="enough sine waves" dur={2.2} easing="easeInOut" />
</Animation>
</Scene>在 GitHub 上查看 examples/fourier/doc.tsx改编做成你自己的
整个示例打包成一个文件:文档、它用到的图片和片段,以及已经朗读好的旁白。在 VisoTalk Studio 中导入它(首页上的导入 .visotalk)即可在那里修改,或者用 npx visotalk import fourier.visotalk 为 Agent SKILL 解包。