Skip to content

psi-func/tarot-front

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tarot frontend

Setup

Require node

rustup target add wasm32-unknown-unknown
cargo install -f wasm-bindgen-cli

Build

cargo build --release --target wasm32-unknown-unknown
wasm-bindgen --out-dir ./html/wasm --target web ./target/wasm32-unknown-unknown/release/tarot-front.wasm

Test

npx serve html
+#or
+python3 -m http.server 3000

Prepare Assets

Glue and convert tarot into one image

cd tarot
montage *.jpg -tile 8x10 -geometry +0+0 ../classic.png

# better result
montage $(ls -1 *.jpg | sort -g) -tile 8X10 -geometry +0+0 -resize 240X400! -gravity center -crop 240X400+0+0 ../classic.tmp.png
convert ../classic.tmp.png -depth 8 ../classic.png # due to issue https://github.com/bevyengine/bevy/issues/4532
for f in ./tarot/*.jpg; do convert $f -resize 240X400! -depth 8 ./tmp/$(basename "$f" .jpg).png; done

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published