Show HN: MotionLoom – An open-source video-as-code language for video creation (lovelyzombieyho.github.io)
Because of these goals, I created MotionLoom. It can run in WASM in the browser, and it is also designed to be usable in native apps and, as a secondary goal, from the terminal. Here is a simple “Hello World” example. It creates a 3-second video at 30 FPS, with a black background and the text “HELLO WORLD” fading in at the center of the screen:
```xml
<Graph fps={30} duration="3s" size={[1920,1080]} renderSize={[1920,1080]}>
<Background color="#000000" />
<Scene id="hello_world_fadein">
<Timeline>
<Track id="main" space="world" z="0">
<Sequence from="0s" duration="3s" out="hold">
<Layer>
<Text
id="hello_world_text"
value="HELLO WORLD"
x="center"
y="center"
fontFamily="Arial"
fontWeight="900"
fontSize="120"
color="#ffffff"
opacity={curve("0:0:linear, 1.2:1:ease_out, 3:1:linear")}
renderScale="4x"
/>
</Layer>
</Sequence>
</Track>
</Timeline>
</Scene>
<Present from="hello_world_fadein" />
</Graph>``` I also made a demo page where you can try different showcases: https://lovelyzombieyho.github.io/anica-landing-page/motionl... For now, there are around 100 examples and 40+ showcases. It should work well in Chromium-based browsers on both laptops and phones. I’d love to hear any ideas or feedback about the project, especially on the DSL design, use cases, and what could be improved.
0 comments
[ 5.2 ms ] story [ 13.9 ms ] threadNo comments yet.