Layers, masks and audio signals¶
This ten-second composition contains three scenes: numbered cards move as nested groups, valley footage plays inside a rotating mask, and a radial spectrum responds to a synthesized soundtrack. The scene captions identify the features as they appear.
Complete Python source Full-resolution render
Reproduce the example¶
After the one-time gallery setup, run this from the repository root:
Open examples/output/readme-demo.mp4: ten seconds, 1280 × 720, 30 fps.
The script replaces that output when rerun. To choose another destination:
uv run --no-sync python examples/showcase/readme-demo/main.py \
--output examples/output/animated-scenes.mp4
The project uses the bundled Manrope font, valley clip and
synthesized soundtrack. output_audio=False excludes audio from the exported
video while keeping it available for analysis.
Organize related layers into scenes¶
The local scene() helper creates a group with a start time, duration and
opacity animation. Each scene fades in and out over a persistent background.
Moving a scene later in the composition preserves the timing of its children.
The card scene adds another level of groups: each card contains a rectangle,
a circle and a label. Animating the card's transform moves all three together.
In the media scene, OrderedDither.amount changes from zero to one, introducing
the palette treatment after the footage is visible. The final scene combines
Spectrum2D frequency analysis with an RMS signal bound to the ring's scale.
For these techniques, see Animation and keyframes, Groups and nested compositions, Masks, and Audio-reactive authoring.
Credits¶
The valley clip is shared with the benchmark workloads. The footage is resized, reframed, masked and dithered.
The original synth loop is CC0; Manrope is SIL OFL 1.1. Its example credits link to the original synth dedication, footage preparation and accompanying font license.
Preview details¶
This is a downscaled copy of the complete CPU render: 640 × 360, 30 fps,
H.264/yuv420p with MP4 fast start. The WebP poster is the frame at 1.7 seconds.
The original render and cleaned source are together at the
reviewed example revision.
The source render's SHA-256 is fe91bfbfc12501f3f8b7dc68a97e227bc2fbc9801f23a82004567795cd6021bf.
Reproduce the delivery copies. The previews contain rendered text; they do not distribute font files.