Skip to content

programmatic video rendering framework that is actually fast

docs: make README examples readable on mobile (#242)

Dmitriy Kovalenko60dddb4942fd
diff --git a/README.md b/README.md
index e9e91c4f..1ede72cf 100644
--- a/README.md
+++ b/README.md
@@ -156,123 +156,180 @@ The full API reference is on [docs.rs/fframes](https://docs.rs/fframes).
## Examples
-Click a poster to watch the example. The README in each example folder has the video inline, and
-`just render <example>` renders the full one.
+Click a poster to watch the video, or an example name to browse its source. Each example's README also has
+the video inline.
-<table>
- <tr>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/9fdfd7b6-121b-4b49-bbf4-6f34d240f3a5"><img alt="fframes-intro" src="examples/_previews/fframes-intro.jpg" width="100%" /></a><br />
- <b><a href="examples/fframes-intro">fframes-intro</a></b><br />
- <sub>the 128 second <a href="https://x.com/neogoose_btw/status/2104432561200279774">launch video</a>, everything placed on the beat grid of its soundtrack</sub>
- </td>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/d03e5fe7-4782-4a67-9571-e435ed367477"><img alt="signal-lab" src="examples/_previews/signal-lab.jpg" width="100%" /></a><br />
- <b><a href="examples/signal-lab">signal-lab</a></b><br />
- <sub>a 24 second motion study: product UI, data storytelling and a technical explainer</sub>
- </td>
- </tr>
- <tr>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/2a97f8d0-abb9-4b24-9149-cde560b1efcb"><img alt="shaders" src="examples/_previews/shaders.jpg" width="100%" /></a><br />
- <b><a href="examples/shaders">shaders</a></b><br />
- <sub>GPU shader layers composed with SVG: an SkSL background and a Shadertoy raymarcher clipped into a card</sub>
- </td>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/53bed61f-6478-471b-81c1-125a3054ee18"><img alt="shader-mode" src="examples/_previews/shader-mode.jpg" width="100%" /></a><br />
- <b><a href="examples/shader-mode">shader-mode</a></b><br />
- <sub>a 31-second shader promo with reference audio, a moving panel wall, native preview footage and 18 GPU shader programs, rendered with Skia on Metal or Vulkan.<br />The preview is silent: its soundtrack is not in the repository.</sub>
- </td>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/8f15791f-0dc4-4589-bec4-c63e4ec0f912"><img alt="neon-triangle" src="examples/_previews/neon-triangle.jpg" width="100%" /></a><br />
- <b><a href="examples/neon-triangle">neon-triangle</a></b><br />
- <sub>a minimal shader clip built to make banding and motion artifacts easy to spot</sub>
- </td>
- </tr>
- <tr>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/4731c533-c120-44d0-8022-e09600d0c52f"><img alt="hello-world" src="examples/_previews/hello-world.jpg" width="100%" /></a><br />
- <b><a href="examples/hello-world">hello-world</a></b><br />
- <sub>a simple "hello world" video</sub>
- </td>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/fee736cc-e6e4-4ad6-b2a8-ca2ad287ab53"><img alt="beta" src="examples/_previews/beta.jpg" width="100%" /></a><br />
- <b><a href="examples/beta">beta</a></b><br />
- <sub>a complicated multi-scene example (our beta announce video)</sub>
- </td>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/963e7f80-e13a-44a2-95de-63684e175006"><img alt="marketing" src="examples/_previews/marketing.jpg" width="100%" /></a><br />
- <b><a href="examples/marketing">marketing</a></b><br />
- <sub>our marketing video</sub>
- </td>
- </tr>
- <tr>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/2b6706b8-562d-41fe-97aa-cc8198980001"><img alt="audio-announce" src="examples/_previews/audio-announce.jpg" width="100%" /></a><br />
- <b><a href="examples/audio-announce">audio-announce</a></b><br />
- <sub>an automated workflow to create audio visualisation with automated subtitles</sub>
- </td>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/602f32c6-4c4c-4d07-b5e9-da5e9dfe80ad"><img alt="podcast" src="examples/_previews/podcast.jpg" width="100%" /></a><br />
- <b><a href="examples/podcast">podcast</a></b><br />
- <sub>an audio visualization for a podcast placeholder video</sub>
- </td>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/fb57ae04-f908-4787-9ef0-bd440d36b1a4"><img alt="teej-podcast" src="examples/_previews/teej-podcast.jpg" width="100%" /></a><br />
- <b><a href="examples/teej-podcast">teej-podcast</a></b><br />
- <sub>teej's podcast with video and chapters visualization</sub>
- </td>
- </tr>
- <tr>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/20dda3c9-8c44-4ea9-9663-860527d635be"><img alt="tiktok" src="examples/_previews/tiktok.jpg" width="56%" /></a><br />
- <b><a href="examples/tiktok">tiktok</a></b><br />
- <sub>a TikTok-like vertical video</sub>
- </td>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/066d349e-aad6-4d03-b76b-25ad8ccdf8eb"><img alt="conference-splash-screen" src="examples/_previews/conference-splash-screen.jpg" width="100%" /></a><br />
- <b><a href="examples/conference-splash-screen">conference-splash-screen</a></b><br />
- <sub>one splash screen per conference talk, rendered in batch</sub>
- </td>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/71f0b506-e37b-4e56-8064-b9bbc57cdfad"><img alt="low-poly-art" src="examples/_previews/low-poly-art.jpg" width="100%" /></a><br />
- <b><a href="examples/low-poly-art">low-poly-art</a></b><br />
- <sub>a renderer stress test: animal art with a lot of polygons</sub>
- </td>
- </tr>
- <tr>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/fdddfc5e-72f2-4e5f-8ebe-892b9025ee1f"><img alt="pixel-memory" src="examples/_previews/pixel-memory.jpg" width="100%" /></a><br />
- <b><a href="examples/pixel-memory">pixel-memory</a></b><br />
- <sub>my dog's memorial video generator (totally randomized)</sub>
- </td>
- </tr>
- <tr>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/3736d334-624b-42b5-870d-0afd39cfe3ff"><img alt="lottie" src="examples/_previews/lottie.jpg" width="56%" /></a><br />
- <b><a href="examples/lottie">lottie</a></b><br />
- <sub>an 18 second vertical launch video for Lottie support: every animation is a Lottie file and the music is synthesized in Rust</sub>
- </td>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/3c51ccae-3541-4c79-817c-f544cf83e415"><img alt="made-of-motion" src="examples/_previews/made-of-motion.jpg" width="100%" /></a><br />
- <b><a href="examples/made-of-motion">made-of-motion</a></b><br />
- <sub>a 20 second promo with pixel objects, a perspective carousel, thermal shaders and per-exposure vector ink, an adaptation of a reference film</sub>
- </td>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/f752ebc6-6d7c-4304-abb6-27becc64801c"><img alt="arm" src="examples/_previews/arm.jpg" width="100%" /></a><br />
- <b><a href="examples/arm">arm</a></b><br />
- <sub>a 37 second 3D short: a lab robot with a camera eye spells fframes, drops a letter and picks it up again, rendered with fframes-3d on the GPU</sub>
- </td>
- <td width="33%" align="center" valign="top">
- <a href="https://github.com/user-attachments/assets/09432a37-4bd9-42ac-b068-ce92f59695af"><img alt="svg-in-3d" src="examples/_previews/svg-in-3d.jpg" width="100%" /></a><br />
- <b><a href="examples/svg-in-3d">svg-in-3d</a></b><br />
- <sub>an svgr UI on the screen of a turning 3D monitor, showing a 3D cube with the svgr logo: four nested levels of SVG and 3D that never leave the GPU</sub>
- </td>
- </tr>
-</table>
+- [Motion and launch videos](#motion-and-launch-videos)
+- [Shaders and 3D](#shaders-and-3d)
+- [Audio and video](#audio-and-video)
+- [Animation and rendering](#animation-and-rendering)
+
+From the repository root, `just run podcast` opens an example in the editor with live reload and
+`just render podcast` writes it to a file. Replace `podcast` with any example name below.
+
+<!-- Keep previews stacked: GitHub README tables cannot reflow into one column on mobile. -->
+
+### Motion and launch videos
+
+#### [fframes-intro](examples/fframes-intro)
+
+The 128 second [launch video](https://x.com/neogoose_btw/status/2104432561200279774), everything placed on the beat grid of its soundtrack.
+
+<a href="https://github.com/user-attachments/assets/9fdfd7b6-121b-4b49-bbf4-6f34d240f3a5">
+ <img alt="Watch fframes-intro" src="examples/_previews/fframes-intro.jpg" width="640" />
+</a>
+
+#### [signal-lab](examples/signal-lab)
+
+A 24 second motion study: product UI, data storytelling and a technical explainer.
+
+<a href="https://github.com/user-attachments/assets/d03e5fe7-4782-4a67-9571-e435ed367477">
+ <img alt="Watch signal-lab" src="examples/_previews/signal-lab.jpg" width="640" />
+</a>
+
+#### [made-of-motion](examples/made-of-motion)
+
+A 20 second promo with pixel objects, a perspective carousel, thermal shaders and per-exposure vector ink, an adaptation of a reference film.
+
+<a href="https://github.com/user-attachments/assets/3c51ccae-3541-4c79-817c-f544cf83e415">
+ <img alt="Watch made-of-motion" src="examples/_previews/made-of-motion.jpg" width="480" />
+</a>
+
+#### [beta](examples/beta)
+
+A complicated multi-scene example (our beta announce video).
+
+<a href="https://github.com/user-attachments/assets/fee736cc-e6e4-4ad6-b2a8-ca2ad287ab53">
+ <img alt="Watch beta" src="examples/_previews/beta.jpg" width="640" />
+</a>
+
+#### [marketing](examples/marketing)
+
+Our marketing video.
+
+<a href="https://github.com/user-attachments/assets/963e7f80-e13a-44a2-95de-63684e175006">
+ <img alt="Watch marketing" src="examples/_previews/marketing.jpg" width="640" />
+</a>
+
+### Shaders and 3D
+
+#### [shaders](examples/shaders)
+
+GPU shader layers composed with SVG: an SkSL background and a Shadertoy raymarcher clipped into a card.
+
+<a href="https://github.com/user-attachments/assets/2a97f8d0-abb9-4b24-9149-cde560b1efcb">
+ <img alt="Watch shaders" src="examples/_previews/shaders.jpg" width="640" />
+</a>
+
+#### [shader-mode](examples/shader-mode)
+
+A 31-second shader promo with reference audio, a moving panel wall, native preview footage and 18 GPU shader programs, rendered with Skia on Metal or Vulkan.
+
+The preview is silent: its soundtrack is not in the repository.
+
+<a href="https://github.com/user-attachments/assets/53bed61f-6478-471b-81c1-125a3054ee18">
+ <img alt="Watch shader-mode" src="examples/_previews/shader-mode.jpg" width="640" />
+</a>
+
+#### [neon-triangle](examples/neon-triangle)
+
+A minimal shader clip built to make banding and motion artifacts easy to spot.
+
+<a href="https://github.com/user-attachments/assets/8f15791f-0dc4-4589-bec4-c63e4ec0f912">
+ <img alt="Watch neon-triangle" src="examples/_previews/neon-triangle.jpg" width="640" />
+</a>
+
+#### [arm](examples/arm)
+
+A 37 second 3D short: a lab robot with a camera eye spells fframes, drops a letter and picks it up again, rendered with fframes-3d on the GPU.
+
+<a href="https://github.com/user-attachments/assets/f752ebc6-6d7c-4304-abb6-27becc64801c">
+ <img alt="Watch arm" src="examples/_previews/arm.jpg" width="640" />
+</a>
+
+#### [svg-in-3d](examples/svg-in-3d)
+
+An svgr UI on the screen of a turning 3D monitor, showing a 3D cube with the svgr logo: four nested levels of SVG and 3D that never leave the GPU.
+
+<a href="https://github.com/user-attachments/assets/09432a37-4bd9-42ac-b068-ce92f59695af">
+ <img alt="Watch svg-in-3d" src="examples/_previews/svg-in-3d.jpg" width="640" />
+</a>
+
+### Audio and video
+
+#### [audio-announce](examples/audio-announce)
+
+An automated workflow to create audio visualisation with automated subtitles.
+
+<a href="https://github.com/user-attachments/assets/2b6706b8-562d-41fe-97aa-cc8198980001">
+ <img alt="Watch audio-announce" src="examples/_previews/audio-announce.jpg" width="640" />
+</a>
+
+#### [podcast](examples/podcast)
+
+An audio visualization for a podcast placeholder video.
+
+<a href="https://github.com/user-attachments/assets/602f32c6-4c4c-4d07-b5e9-da5e9dfe80ad">
+ <img alt="Watch podcast" src="examples/_previews/podcast.jpg" width="640" />
+</a>
+
+#### [teej-podcast](examples/teej-podcast)
+
+Teej's podcast with video and chapters visualization.
+
+<a href="https://github.com/user-attachments/assets/fb57ae04-f908-4787-9ef0-bd440d36b1a4">
+ <img alt="Watch teej-podcast" src="examples/_previews/teej-podcast.jpg" width="640" />
+</a>
+
+### Animation and rendering
+
+#### [hello-world](examples/hello-world)
+
+A simple "hello world" video.
+
+<a href="https://github.com/user-attachments/assets/4731c533-c120-44d0-8022-e09600d0c52f">
+ <img alt="Watch hello-world" src="examples/_previews/hello-world.jpg" width="640" />
+</a>
+
+#### [tiktok](examples/tiktok)
+
+A TikTok-like vertical video.
+
+<a href="https://github.com/user-attachments/assets/20dda3c9-8c44-4ea9-9663-860527d635be">
+ <img alt="Watch tiktok" src="examples/_previews/tiktok.jpg" width="240" />
+</a>
+
+#### [lottie](examples/lottie)
+
+An 18 second vertical launch video for Lottie support: every animation is a Lottie file and the music is synthesized in Rust.
+
+<a href="https://github.com/user-attachments/assets/3736d334-624b-42b5-870d-0afd39cfe3ff">
+ <img alt="Watch lottie" src="examples/_previews/lottie.jpg" width="240" />
+</a>
+
+#### [conference-splash-screen](examples/conference-splash-screen)
+
+One splash screen per conference talk, rendered in batch.
+
+<a href="https://github.com/user-attachments/assets/066d349e-aad6-4d03-b76b-25ad8ccdf8eb">
+ <img alt="Watch conference-splash-screen" src="examples/_previews/conference-splash-screen.jpg" width="640" />
+</a>
+
+#### [low-poly-art](examples/low-poly-art)
+
+A renderer stress test: animal art with a lot of polygons.
+
+<a href="https://github.com/user-attachments/assets/71f0b506-e37b-4e56-8064-b9bbc57cdfad">
+ <img alt="Watch low-poly-art" src="examples/_previews/low-poly-art.jpg" width="640" />
+</a>
+
+#### [pixel-memory](examples/pixel-memory)
+
+My dog's memorial video generator (totally randomized).
-From the repository root, `just run podcast` opens an example in the editor with live reload and `just render podcast`
-writes it to a file.
+<a href="https://github.com/user-attachments/assets/fdddfc5e-72f2-4e5f-8ebe-892b9025ee1f">
+ <img alt="Watch pixel-memory" src="examples/_previews/pixel-memory.jpg" width="640" />
+</a>
## Without an agent