/[gzz]/gzz/gfx/demo/fontfilter2.py
ViewVC logotype

Diff of /gzz/gfx/demo/fontfilter2.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by jvk, Mon Mar 31 13:33:37 2003 UTC revision 1.13 by jvk, Mon Mar 31 15:36:50 2003 UTC
# Line 144  def doFrame(s,width,height): Line 144  def doFrame(s,width,height):
144                         w=int(width+.5),                         w=int(width+.5),
145                         h=int(height+.5))                         h=int(height+.5))
146      saveanim.saveframe("/tmp/bleaching%iz.png" % frame, w,      saveanim.saveframe("/tmp/bleaching%iz.png" % frame, w,
147                         x=int(width*.9+.5),                         x=int(pap_s * 15 +.5),
148                           y=int(pap_s * 2 +.5),
149                         w=int(width*.1+.5),                         w=int(width*.1+.5),
150                         h=int(height*.5+.5))                         h=int(height*.5+.5))
151      frame += 1      frame += 1
# Line 169  def makeScreenshots(scene, key): Line 170  def makeScreenshots(scene, key):
170      frame = 0      frame = 0
171    
172      pap_x,pap_y, = -100, -400      pap_x,pap_y, = -100, -400
173      xs,ys        = 135, 35      xs,ys        = 300, 60
174    
175      zoom0,zoom1,zoom2 = 1.0, 1.5, 2.25      zoom0,zoom1,zoom2 = 1.0, 1.5, 3
176            
177      currentScene.text = 1      currentScene.text = 1
178      currentScene.halo = 0      currentScene.halo = 0
179      pap_s = zoom0      pap_s = zoom0
180      doFrame(s,xs*pap_s,ys*pap_s)      doFrame(s,xs,ys)
181    
182      currentScene.text = 1      currentScene.text = 1
183      currentScene.halo = 0      currentScene.halo = 0
184      pap_s = zoom1      pap_s = zoom1
185      doFrame(s,xs*pap_s,ys*pap_s)      doFrame(s,xs,ys)
186    
187      currentScene.text = 1      currentScene.text = 1
188      currentScene.halo = 0      currentScene.halo = 0
189      pap_s = zoom2      pap_s = zoom2
190      doFrame(s,xs*pap_s,ys*pap_s)      doFrame(s,xs,ys)
191    
192      currentScene.text = 1      currentScene.text = 1
193      currentScene.halo = 1      currentScene.halo = 1
194      pap_s = zoom0      pap_s = zoom0
195      doFrame(s,xs*pap_s,ys*pap_s)      doFrame(s,xs,ys)
196    
197      currentScene.text = 1      currentScene.text = 1
198      currentScene.halo = 1      currentScene.halo = 1
199      pap_s = zoom1      pap_s = zoom1
200      doFrame(s,xs*pap_s,ys*pap_s)      doFrame(s,xs,ys)
201    
202      currentScene.text = 1      currentScene.text = 1
203      currentScene.halo = 1      currentScene.halo = 1
204      pap_s = zoom2      pap_s = zoom2
205      doFrame(s,xs*pap_s,ys*pap_s)      doFrame(s,xs,ys)
206    
207      currentScene.text = 0      currentScene.text = 0
208      currentScene.halo = 1      currentScene.halo = 1
209      pap_s = zoom0      pap_s = zoom0
210      doFrame(s,xs*pap_s,ys*pap_s)      doFrame(s,xs,ys)
211    
212      currentScene.text = 0      currentScene.text = 0
213      currentScene.halo = 1      currentScene.halo = 1
214      pap_s = zoom1      pap_s = zoom1
215      doFrame(s,xs*pap_s,ys*pap_s)      doFrame(s,xs,ys)
216    
217      currentScene.text = 0      currentScene.text = 0
218      currentScene.halo = 1      currentScene.halo = 1
219      pap_s = zoom2      pap_s = zoom2
220      doFrame(s,xs*pap_s,ys*pap_s)      doFrame(s,xs,ys)
221    
222    
223  class Scene:  class Scene:

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26