Changes

Jump to navigation Jump to search
no edit summary
== Introduction ==
If you wish to make an animation in your document, see the [[Animation]] page. This page will explain how to [[MetaFun_-_MetaPost_in_ConTeXt|MetaFun]] to create a mp4 movie. Such movie can be embedded in a presentation, put on YouTube, etc, this will be a real movie !
The steps involved to realize such a movie are to (1) make a pdf such as each page is a frame of the movie, (2) convert the pdf pages to jpeg images, (3) assemble these images into a mp4 movie.
\stoptext
</texcode>
 
An ''MPpage'' has the size of the bounding box of all combined objects on the current page, so if objects move within the page, the page size will change. A solution to maintain control is to introduce a frame, which we can visualize as a camera frame. In the following, we refer to this frame as `TheFrame`. We can keep this frame fixed while subjects move within it, or we can keep subjects steady and move the frame, or even do both! In fact, if we think of a real camera, this is exactly the same concept. Let's consider a fixed square frame here, called `TheFrame`:
 
<texcode>
\startMPpage
path TheFrame ;
TheFrame := fullsquare scaled 80 ;
% the code...
setbounds currentpicture to TheFrame ;
\stopMPpage
</texcode>
 
Project1-A : [[File:Project1-A.mp4]]
36

edits

Navigation menu