Tangent example.

This commit is contained in:
David 2019-03-22 19:21:58 +01:00
commit b813246f3f
3 changed files with 2 additions and 1 deletions

View file

@ -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
on the live coding playground.
![Tangent](gifs/tangent.gif)
![Goo](gifs/goo.gif)
![Drawing LaTeX equations](gifs/latex_draw.gif)
![Bounding boxes](gifs/bbox.gif)

BIN
gifs/tangent.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

View file

@ -52,7 +52,7 @@ renderFormat :: Format -> Animation -> FilePath -> IO ()
renderFormat format ani target = do
putStrLn $ "Starting render of animation: " ++ show (round (duration ani)) ++ "s"
ffmpeg <- requireExecutable "ffmpeg"
generateFrames ani 640 fps $ \template ->
generateFrames ani 320 fps $ \template ->
withTempFile "txt" $ \progress -> writeFile progress "" >>
case format of
RenderMp4 ->