mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-12 00:23:08 +00:00
Fix gallery code and add default_cube.
Former-commit-id: 9e064988a9483772cbd2cc02b3d1415ea37b0c2b
This commit is contained in:
parent
405fe8d280
commit
585a2145ae
2 changed files with 8 additions and 38 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
ROOT=`stack path --project-root`
|
||||
EXAMPLES='boundingbox colormaps goo latex_basic latex_color latex_draw
|
||||
latex_wheel raster sphere sunflower tangent_and_normal vector_field'
|
||||
latex_wheel raster sphere blender_default_cube'
|
||||
|
||||
WIDTH=640
|
||||
HEIGHT=$((WIDTH*9/16))
|
||||
|
|
@ -10,7 +10,7 @@ FPS=30
|
|||
|
||||
SRC_DIR=$ROOT/examples
|
||||
DST_DIR=$ROOT/docs/rendered
|
||||
OPTS='--fps $FPS --width $WIDTH --height $HEIGHT'
|
||||
OPTS="--fps $FPS --width $WIDTH --height $HEIGHT"
|
||||
|
||||
cat << EOF > $ROOT/docs/gallery.md
|
||||
# Gallery
|
||||
|
|
@ -37,8 +37,8 @@ for e in $EXAMPLES; do
|
|||
|
||||
EOF
|
||||
|
||||
SRC_FILE=./$SRC_DIR/$e.hs
|
||||
DST_FILE=./$DST_DIR/$e.mp4
|
||||
SRC_FILE=$SRC_DIR/$e.hs
|
||||
DST_FILE=$DST_DIR/$e.mp4
|
||||
if [[ "$SRC_FILE" -nt "$DST_FILE" ]]; then
|
||||
stack $SRC_FILE render --compile -o $DST_FILE $OPTS
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue