Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 2.06 KB

File metadata and controls

57 lines (40 loc) · 2.06 KB

Candy Documentation

License

Licensed under either of

at your option.

Code-oriented Animation eNgine Designed for tYpst.

Candy turns .tyx files — standard Typst documents extended with a small set of animation directives — into self-contained videos (MP4 / MKV / WebM), animated GIFs, or static PNG posters. Inspired by 3Blue1Brown's Manim, with API inspiration from tanim and kino.

The backend is written in Rust and renders in-process with the typst compiler library — no CLI invocation. Default codec (x264) requires system ffmpeg; falls back to self-contained openh264 (h264) when unavailable.

Where to start

  • New to Candy? Read the Tutorial — it walks you from install to your first clip, then through transforms, scenes, subtitles, and output.
  • Looking something up? Jump to the Reference — the full directive list, easing curves, counters, CLI flags, codec matrix, error codes, and the Rust API.

Sections

Section Audience Contents
Tutorial .tyx authors (Typst users) Install, first clip, animation basics, transforms, scenes/camera/groups, subtitles & counters, output & codecs.
Reference Everyone Directives, easing, counters, CLI, codecs, error model, Rust API & architecture.

Install

# From crates.io (the published crate is named candy-animation)
cargo install candy-animation

# Or build from source
git clone https://github.com/ViCo-Lab/candy
cd candy/rust && cargo build --release
# the binary is `candy`

See Tutorial · Install for prerequisites and offline-build notes.

License

MIT License.