From 3b13df9df74694a7e0cc326d76c8434db2d96f50 Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Wed, 15 Jan 2025 15:44:34 +0100 Subject: [PATCH] init --- .gitignore | 1 + README.md | 11 +++++++++++ justfile | 13 +++++++++++++ typst.toml | 6 ++++++ 4 files changed, 31 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 justfile create mode 100644 typst.toml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..89f9ac0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +out/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..6c3da5a --- /dev/null +++ b/README.md @@ -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. + + diff --git a/justfile b/justfile new file mode 100644 index 0000000..40f6c3b --- /dev/null +++ b/justfile @@ -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 diff --git a/typst.toml b/typst.toml new file mode 100644 index 0000000..9d4a0e0 --- /dev/null +++ b/typst.toml @@ -0,0 +1,6 @@ +[package] +name = "TAbby" +version = "0.1.0" +entrypoint = "src/lib.typ" +authors = ["Schrottkatze"] +description = "A Typst animation library."