init
This commit is contained in:
commit
3b13df9df7
4 changed files with 31 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
out/
|
11
README.md
Normal file
11
README.md
Normal 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
13
justfile
Normal 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
6
typst.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
[package]
|
||||
name = "TAbby"
|
||||
version = "0.1.0"
|
||||
entrypoint = "src/lib.typ"
|
||||
authors = ["Schrottkatze"]
|
||||
description = "A Typst animation library."
|
Loading…
Add table
Add a link
Reference in a new issue