mirror of
https://github.com/reanimate/reanimate.git
synced 2026-09-10 23:52:22 +00:00
add documentation on the canvas
Former-commit-id: f23bd0620f6a9541d08824b7030ad0b31ee922a6
This commit is contained in:
parent
d112e23a9b
commit
8fbec92129
1 changed files with 22 additions and 12 deletions
|
|
@ -11,20 +11,30 @@ Reanimate is an animation library based on SVGs. It is designed to act like glue
|
|||
between external components such as 'latex', 'ffmpeg', 'gnuplot', 'diagrams',
|
||||
and 'povray'.
|
||||
|
||||
= Canvas
|
||||
|
||||
Reanimate uses its own internal, Cartesian coordinate system for animations,
|
||||
with a fixed canvas size of 16x9, where X and Y are real numbers. (0, 0) is
|
||||
located in the center of the canvas, with positive X going to the right, and
|
||||
positive Y going up. This means that e.g. (8, 4.5) is the top right corner
|
||||
and (-8, -4.5) is the bottom left corner. Note that this canvas size does not
|
||||
affect how large or small output resolution will be, although it /does/ affect
|
||||
aspect ratio.
|
||||
|
||||
= Driver
|
||||
|
||||
Reanimate features a web-based viewer which is opened by default if
|
||||
no other parameters are given. Key features:
|
||||
|
||||
* This viewer listens for changes to the source file and recompiles the
|
||||
code automatically as needed.
|
||||
* Animations are rendered with increasing fidelity until the frame
|
||||
rate reaches 60 fps.
|
||||
* Key commands for pausing, frame stepping, forward/rewind.
|
||||
To pause press SPACE, to move -1\/+1\/-10\/+10 frames use LEFT\/RIGHT\/DOWN\/UP arrow keys.
|
||||
-}
|
||||
module Reanimate
|
||||
( -- * Driver
|
||||
--
|
||||
-- | Reanimate features a web-based viewer which is opened by default if
|
||||
-- no other parameters are given. Key features:
|
||||
--
|
||||
-- * This viewer listens for changes to the source file and recompiles the
|
||||
-- code automatically as needed.
|
||||
-- * Animations are rendered with increasing fidelity until the frame
|
||||
-- rate reaches 60 fps.
|
||||
-- * Key commands for pausing, frame stepping, forward/rewind.
|
||||
-- To pause press SPACE, to move -1\/+1\/-10\/+10 frames use LEFT\/RIGHT\/DOWN\/UP arrow keys.
|
||||
reanimate,
|
||||
( reanimate,
|
||||
-- * Animations
|
||||
SVG,
|
||||
Time,
|
||||
|
|
|
|||
Loading…
Reference in a new issue