%%%% titles_2.ldf %%%% Created by Laurence D. Finston (LDF) So Aug 14 18:45:55 CEST 2005 % $Id: titles_2.ldf,v 1.4 2007/07/18 13:00:44 lfinsto1 Exp $ %% * (1) Copyright and License. %%%% This file is part of GNU 3DLDF, a package for three-dimensional drawing. %%%% Copyright (C) 2003, 2004, 2005, 2006, 2007 The Free Software Foundation %%%% GNU 3DLDF is free software; you can redistribute it and/or modify %%%% it under the terms of the GNU General Public License as published by %%%% the Free Software Foundation; either version 3 of the License, or %%%% (at your option) any later version. %%%% GNU 3DLDF is distributed in the hope that it will be useful, %%%% but WITHOUT ANY WARRANTY; without even the implied warranty of %%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the %%%% GNU General Public License for more details. %%%% You should have received a copy of the GNU General Public License %%%% along with GNU 3DLDF; if not, write to the Free Software %%%% Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA %%%% GNU 3DLDF is a GNU package. %%%% It is part of the GNU Project of the %%%% Free Software Foundation %%%% and is published under the GNU General Public License. %%%% See the website http://www.gnu.org %%%% for more information. %%%% GNU 3DLDF is available for downloading from %%%% http://www.gnu.org/software/3dldf/LDF.html. %%%% It is also available from %%%% http://www.dante.de/software/ctan/, the Dante www-server %%%% and from http://wwwuser.gwdg.de/~lfinsto1, %%%% the author's website. %%%% Please send bug reports to lfinsto1@gwdg.de %%%% The mailing list help-3dldf@gnu.org is available for people to %%%% ask other users for help. %%%% The mailing list info-3dldf@gnu.org is for sending %%%% announcements to users. To subscribe to these mailing lists, send an %%%% email with ``subscribe '' as the subject. %%%% The author can be contacted at: %%%% Laurence D. Finston %%%% c/o Free Software Foundation, Inc. %%%% 51 Franklin St, Fifth Floor %%%% Boston, MA 02110-1301 %%%% USA %%%% lfinsto1@gwdg.de %%%% s246794@stud.uni-goettingen.de %% * (1) Beginning of 3DLDF code. %% ** (2) Run these commands: %% make run %% cnepspng titles_2 0 47 %% mogrify -geometry 640x480! titles_2_*.png %% See 'convert.el' for further instructions on creating an MPEG file. %% ** (2) Fonts. verbatim_metapost "verbatimtex \font\Largebx=cmbx12 etex"; verbatim_metapost "verbatimtex \font\Large=cmr12 scaled 2000 etex"; verbatim_metapost "verbatimtex \font\large=cmr17 etex"; verbatim_metapost "verbatimtex \font\largebx=cmbx17 etex"; verbatim_metapost "verbatimtex \font\bigit=cmti11 etex"; verbatim_metapost "verbatimtex \font\normal=cmr10 etex"; verbatim_metapost "verbatimtex \font\small=cmr6 etex"; %% ** (2) w := 6.4cm; h := 4.8cm; w *= 4; h *= 4; w /= 1.1375; h /= 1.1375; pen_width := .75mm; frame_w := w - .5pen_width; frame_h := h - .5pen_width; path frame; frame := origin -- (frame_w, 0) -- (frame_w, frame_h) -- (0, frame_h) -- cycle; shift frame (-.5frame_w, -.5frame_h); picture frame_picture; %% ** (2) Set up frame. beginfig(0); draw frame with_pen pensquare scaled (pen_width, pen_width, pen_width); frame_picture := current_picture; endfig with_projection parallel_x_y; endfor; for i = 1 upto 4: beginfig(i); current_picture := frame_picture; endfig with_projection parallel_x_y; endfor; %% *** (3) j := 0; for i = 5 upto 19: scale_value := 1 + .5j; beginfig(i); label("{\Largebx Coming Soon}", origin) scaled (scale_value, scale_value) with_text_color red; current_picture += frame_picture; endfig with_projection parallel_x_y; j += 1; endfor; scale_value := 8; for i := 20 upto 23: beginfig(i); label("{\Largebx Coming Soon}", origin) scaled (scale_value, scale_value) with_text_color red; current_picture += frame_picture; endfig with_projection parallel_x_y; endfor; %% ** (2) %% *** (3) for i = 24 upto 28: beginfig(i); draw frame with_pen pensquare scaled (pen_width, pen_width, pen_width); frame_picture := current_picture; endfig with_projection parallel_x_y; endfor; % *** (3) j := 0; for i = 29 upto 43: scale_value := 1 + .5j; beginfig(i); text_scale_value := 1/4scale_value; message "scale_value:"; show scale_value; message "text_scale_value:"; show text_scale_value; label("{\Largebx To a Theater}", (0, text_scale_value)) scaled (scale_value, scale_value) with_text_color blue; label("{\Largebx Near You}", (0, -text_scale_value)) scaled (scale_value, scale_value) with_text_color blue; current_picture += frame_picture; endfig with_projection parallel_x_y; j += 1; endfor; scale_value := 8; text_scale_value := 1/4scale_value; message "scale_value:"; show scale_value; message "text_scale_value:"; show text_scale_value; for i := 44 upto 47: beginfig(i); label("{\Largebx To a Theater}", (0, text_scale_value)) scaled (scale_value, scale_value) with_text_color blue; label("{\Largebx Near You}", (0, -text_scale_value)) scaled (scale_value, scale_value) with_text_color blue; current_picture += frame_picture; endfig with_projection parallel_x_y; endfor; %% *** (3) %% ** (2) verbatim_metapost "end"; end; %% ** (2) End of 3DLDF code. %% * (1) Local variables for Emacs. %% Local Variables: %% mode:Metafont %% eval:(outline-minor-mode t) %% eval:(read-abbrev-file abbrev-file-name) %% outline-regexp:"%% [*\f]+" %% End: