This commit is contained in:
Schrottkatze 2025-01-15 15:44:34 +01:00
commit 3b13df9df7
Signed by: schrottkatze
SSH key fingerprint: SHA256:FPOYVeBy3QP20FEM42uWF1Wa/Qhlk+L3S2+Wuau/Auo
4 changed files with 31 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
out/

11
README.md Normal file
View file

@ -0,0 +1,11 @@
# TAbby
> Eine Typst Animationsbibliothek
TAbby is an attempt at making typst a good language for animation.
Your first reaction to this might be "what the actual fuck", because Typst is a typesetting language for static pdfs.
However, typst can output indexed pngs which can easily be used to create video sequences in every half-decent video editor.

13
justfile Normal file
View file

@ -0,0 +1,13 @@
play: compile
mpv video.webm
compile: clear-outdir
typst compile -f png --ppi 164.2 hell.typ 'out/{p}.png'
ffmpeg -framerate 60 -start_number 1 -i out/%d.png video.webm
gif: clear-outdir
typst compile -f png --ppi 54.73333 hell.typ 'out/{p}.png'
ffmpeg -framerate 50 -start_number 1 -i out/%d.png video.gif
clear-outdir:
rm -f out/*.png

6
typst.toml Normal file
View file

@ -0,0 +1,6 @@
[package]
name = "TAbby"
version = "0.1.0"
entrypoint = "src/lib.typ"
authors = ["Schrottkatze"]
description = "A Typst animation library."