mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-14 09:32:22 +00:00
Tangent example.
This commit is contained in:
parent
a6ce4b4ca9
commit
b813246f3f
3 changed files with 2 additions and 1 deletions
|
|
@ -40,6 +40,7 @@ animation source code, the browser window will automatically reload and show the
|
||||||
The example gifs are displayed at 25 fps. The source code for many of these examples are available
|
The example gifs are displayed at 25 fps. The source code for many of these examples are available
|
||||||
on the live coding playground.
|
on the live coding playground.
|
||||||
|
|
||||||
|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
|
||||||
BIN
gifs/tangent.gif
Normal file
BIN
gifs/tangent.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 173 KiB |
|
|
@ -52,7 +52,7 @@ renderFormat :: Format -> Animation -> FilePath -> IO ()
|
||||||
renderFormat format ani target = do
|
renderFormat format ani target = do
|
||||||
putStrLn $ "Starting render of animation: " ++ show (round (duration ani)) ++ "s"
|
putStrLn $ "Starting render of animation: " ++ show (round (duration ani)) ++ "s"
|
||||||
ffmpeg <- requireExecutable "ffmpeg"
|
ffmpeg <- requireExecutable "ffmpeg"
|
||||||
generateFrames ani 640 fps $ \template ->
|
generateFrames ani 320 fps $ \template ->
|
||||||
withTempFile "txt" $ \progress -> writeFile progress "" >>
|
withTempFile "txt" $ \progress -> writeFile progress "" >>
|
||||||
case format of
|
case format of
|
||||||
RenderMp4 ->
|
RenderMp4 ->
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue