Show HN: Wanim – Manim in the browser, but 1/20 smaller
导读:Show HN:Wanim,把 Manim 搬进浏览器、体积极其精简,适合做交互式数学内容而不是离线渲染。
前往 Hacker News 原页 ↗著作权与完整内容归原作者所有,本站做中文收录与导读
发起人说明
Hi HN, I really like Manim, but when I tried to use it to make interactive small demos on the web, I found that no project can simultaneously satisfy running original manim python code without carrying the bulky pyodide which makes it impossible to embed. So I made one. My idea is to rewrite a js library that is almost completely identical to manim, and then patch rapydscript-ng to translate the original code to js, and support numpy syntax. It looks surprisingly good, supports the vast majority of syntax, and the size is only about 1M (1/20 of pyodide)! You can try it at https://wanim.org/playground, and there is an interactive courseware example at https://wanim.org/blog.
想自己做出这类动画?
配合站内中文教程:ManimGL 与 ManimCE · 插件生态 · 常见问题 FAQ。遇到环境问题先查安装报错全解。