1 |
%%%% titles_2.ldf |
2 |
%%%% Created by Laurence D. Finston (LDF) So Aug 14 18:45:55 CEST 2005 |
3 |
|
4 |
% $Id: titles_2.ldf,v 1.7 2008/01/05 18:00:38 lfinsto1 Exp $ |
5 |
|
6 |
%% * (1) Copyright and License. |
7 |
|
8 |
%%%% This file is part of GNU 3DLDF, a package for three-dimensional drawing. |
9 |
%%%% Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The Free Software Foundation |
10 |
|
11 |
%%%% GNU 3DLDF is free software; you can redistribute it and/or modify |
12 |
%%%% it under the terms of the GNU General Public License as published by |
13 |
%%%% the Free Software Foundation; either version 3 of the License, or |
14 |
%%%% (at your option) any later version. |
15 |
|
16 |
%%%% GNU 3DLDF is distributed in the hope that it will be useful, |
17 |
%%%% but WITHOUT ANY WARRANTY; without even the implied warranty of |
18 |
%%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
19 |
%%%% GNU General Public License for more details. |
20 |
|
21 |
%%%% You should have received a copy of the GNU General Public License |
22 |
%%%% along with GNU 3DLDF; if not, write to the Free Software |
23 |
%%%% Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
24 |
|
25 |
%%%% GNU 3DLDF is a GNU package. |
26 |
%%%% It is part of the GNU Project of the |
27 |
%%%% Free Software Foundation |
28 |
%%%% and is published under the GNU General Public License. |
29 |
%%%% See the website http://www.gnu.org |
30 |
%%%% for more information. |
31 |
%%%% GNU 3DLDF is available for downloading from |
32 |
%%%% http://www.gnu.org/software/3dldf/LDF.html. |
33 |
|
34 |
|
35 |
%%%% Please send bug reports to Laurence.Finston@gmx.de |
36 |
%%%% The mailing list help-3dldf@gnu.org is available for people to |
37 |
%%%% ask other users for help. |
38 |
%%%% The mailing list info-3dldf@gnu.org is for sending |
39 |
%%%% announcements to users. To subscribe to these mailing lists, send an |
40 |
%%%% email with ``subscribe <email-address>'' as the subject. |
41 |
|
42 |
%%%% The author can be contacted at: |
43 |
|
44 |
%%%% Laurence D. Finston |
45 |
%%%% c/o Free Software Foundation, Inc. |
46 |
%%%% 51 Franklin St, Fifth Floor |
47 |
%%%% Boston, MA 02110-1301 |
48 |
%%%% USA |
49 |
|
50 |
%%%% Laurence.Finston@gmx.de |
51 |
|
52 |
|
53 |
%% * (1) Beginning of 3DLDF code. |
54 |
|
55 |
%% ** (2) Run these commands: |
56 |
%% make run |
57 |
%% cnepspng titles_2 0 47 |
58 |
%% mogrify -geometry 640x480! titles_2_*.png |
59 |
%% See 'convert.el' for further instructions on creating an MPEG file. |
60 |
|
61 |
%% ** (2) Fonts. |
62 |
|
63 |
verbatim_metapost "verbatimtex \font\Largebx=cmbx12 etex"; |
64 |
verbatim_metapost "verbatimtex \font\Large=cmr12 scaled 2000 etex"; |
65 |
verbatim_metapost "verbatimtex \font\large=cmr17 etex"; |
66 |
verbatim_metapost "verbatimtex \font\largebx=cmbx17 etex"; |
67 |
verbatim_metapost "verbatimtex \font\bigit=cmti11 etex"; |
68 |
verbatim_metapost "verbatimtex \font\normal=cmr10 etex"; |
69 |
verbatim_metapost "verbatimtex \font\small=cmr6 etex"; |
70 |
|
71 |
%% ** (2) |
72 |
|
73 |
w := 6.4cm; |
74 |
h := 4.8cm; |
75 |
|
76 |
w *= 4; |
77 |
h *= 4; |
78 |
|
79 |
w /= 1.1375; |
80 |
h /= 1.1375; |
81 |
|
82 |
pen_width := .75mm; |
83 |
|
84 |
frame_w := w - .5pen_width; |
85 |
frame_h := h - .5pen_width; |
86 |
|
87 |
path frame; |
88 |
frame := origin -- (frame_w, 0) -- (frame_w, frame_h) |
89 |
-- (0, frame_h) -- cycle; |
90 |
|
91 |
shift frame (-.5frame_w, -.5frame_h); |
92 |
|
93 |
picture frame_picture; |
94 |
|
95 |
|
96 |
%% ** (2) Set up frame. |
97 |
|
98 |
beginfig(0); |
99 |
draw frame with_pen pensquare scaled (pen_width, pen_width, pen_width); |
100 |
frame_picture := current_picture; |
101 |
endfig with_projection parallel_x_y; |
102 |
endfor; |
103 |
|
104 |
for i = 1 upto 4: |
105 |
beginfig(i); |
106 |
current_picture := frame_picture; |
107 |
endfig with_projection parallel_x_y; |
108 |
endfor; |
109 |
|
110 |
%% *** (3) |
111 |
|
112 |
j := 0; |
113 |
for i = 5 upto 19: |
114 |
scale_value := 1 + .5j; |
115 |
beginfig(i); |
116 |
label("{\Largebx Coming Soon}", origin) scaled (scale_value, scale_value) |
117 |
with_text_color red; |
118 |
current_picture += frame_picture; |
119 |
endfig with_projection parallel_x_y; |
120 |
j += 1; |
121 |
endfor; |
122 |
|
123 |
|
124 |
scale_value := 8; |
125 |
|
126 |
for i := 20 upto 23: |
127 |
beginfig(i); |
128 |
label("{\Largebx Coming Soon}", origin) scaled (scale_value, scale_value) |
129 |
with_text_color red; |
130 |
current_picture += frame_picture; |
131 |
endfig with_projection parallel_x_y; |
132 |
endfor; |
133 |
|
134 |
%% ** (2) |
135 |
|
136 |
|
137 |
%% *** (3) |
138 |
|
139 |
for i = 24 upto 28: |
140 |
beginfig(i); |
141 |
draw frame with_pen pensquare scaled (pen_width, pen_width, pen_width); |
142 |
frame_picture := current_picture; |
143 |
endfig with_projection parallel_x_y; |
144 |
endfor; |
145 |
|
146 |
|
147 |
|
148 |
% *** (3) |
149 |
|
150 |
j := 0; |
151 |
for i = 29 upto 43: |
152 |
scale_value := 1 + .5j; |
153 |
|
154 |
|
155 |
|
156 |
beginfig(i); |
157 |
text_scale_value := 1/4scale_value; |
158 |
message "scale_value:"; |
159 |
show scale_value; |
160 |
message "text_scale_value:"; |
161 |
show text_scale_value; |
162 |
label("{\Largebx To a Theater}", (0, text_scale_value)) |
163 |
scaled (scale_value, scale_value) |
164 |
with_text_color blue; |
165 |
label("{\Largebx Near You}", (0, -text_scale_value)) |
166 |
scaled (scale_value, scale_value) |
167 |
with_text_color blue; |
168 |
current_picture += frame_picture; |
169 |
endfig with_projection parallel_x_y; |
170 |
j += 1; |
171 |
endfor; |
172 |
|
173 |
scale_value := 8; |
174 |
text_scale_value := 1/4scale_value; |
175 |
|
176 |
message "scale_value:"; |
177 |
show scale_value; |
178 |
message "text_scale_value:"; |
179 |
show text_scale_value; |
180 |
|
181 |
|
182 |
for i := 44 upto 47: |
183 |
beginfig(i); |
184 |
|
185 |
label("{\Largebx To a Theater}", (0, text_scale_value)) |
186 |
scaled (scale_value, scale_value) |
187 |
with_text_color blue; |
188 |
label("{\Largebx Near You}", (0, -text_scale_value)) |
189 |
scaled (scale_value, scale_value) with_text_color blue; |
190 |
current_picture += frame_picture; |
191 |
endfig with_projection parallel_x_y; |
192 |
endfor; |
193 |
|
194 |
%% *** (3) |
195 |
|
196 |
|
197 |
%% ** (2) |
198 |
|
199 |
verbatim_metapost "end"; |
200 |
|
201 |
end; |
202 |
|
203 |
|
204 |
|
205 |
%% ** (2) End of 3DLDF code. |
206 |
|
207 |
%% * (1) Local variables for Emacs. |
208 |
|
209 |
%% Local Variables: |
210 |
%% mode:Metafont |
211 |
%% eval:(outline-minor-mode t) |
212 |
%% eval:(read-abbrev-file abbrev-file-name) |
213 |
%% outline-regexp:"%% [*\f]+" |
214 |
%% End: |