/[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.7 by jvk, Sun Mar 30 13:01:10 2003 UTC revision 1.8 by jvk, Sun Mar 30 13:22:11 2003 UTC
# Line 117  class OptMill(gzz.gfx.gl.PaperMill): Line 117  class OptMill(gzz.gfx.gl.PaperMill):
117  def paperOnce2(vs, into, layout, scale):  def paperOnce2(vs, into, layout, scale):
118      scale *= .5      scale *= .5
119      into = vs.affineCS(into, "zoom", 0,      into = vs.affineCS(into, "zoom", 0,
120                         pap_x,                         pap_x * pap_s,
121                         pap_y,                         pap_y * pap_s,
122                         pap_s, 0, 0, pap_s)                         pap_s, 0, 0, pap_s)
123      layout.place(vs, into, 1, 1, -1)      layout.place(vs, into, 1, 1, -1)
124    
# Line 130  def doFrame(s,width,height): Line 130  def doFrame(s,width,height):
130      vs = w.createVobScene()      vs = w.createVobScene()
131      s.scene(vs)      s.scene(vs)
132      w.renderStill(vs, 0);      w.renderStill(vs, 0);
133      saveanim.saveframe("/tmp/bleaching%i.png" % frame, w, w=width,h=height)      saveanim.saveframe("/tmp/bleaching%i.png" % frame, w,
134                           w=int(width+.5),
135                           h=int(height+.5))
136      frame += 1      frame += 1
137      paperOnce = tmp      paperOnce = tmp
138    
# Line 149  def makeScreenshots(scene, key): Line 151  def makeScreenshots(scene, key):
151      global frame,pap_x,pap_y,pap_s      global frame,pap_x,pap_y,pap_s
152      frame = 0      frame = 0
153    
154      pap_x,pap_y,pap_s = -46,-180,1      pap_x,pap_y, = -46, -180
155        xs,ys        = 270, 270
156    
157        zoom0,zoom1 = .86, 1.0
158        
159      currentScene.text = 1      currentScene.text = 1
160      currentScene.halo = 0      currentScene.halo = 0
161      doFrame(s,270,300)      pap_s = zoom0
162        doFrame(s,xs*pap_s,ys*pap_s)
163    
     pap_x,pap_y,pap_s = -92,-360,2  
164      currentScene.text = 1      currentScene.text = 1
165      currentScene.halo = 0      currentScene.halo = 0
166      doFrame(s,540,300)      pap_s = zoom1
167        doFrame(s,xs*pap_s,ys*pap_s)
168    
169      pap_x,pap_y,pap_s = -46,-180,1      pap_x,pap_y,pap_s = -46,-180,1
170      currentScene.text = 1      currentScene.text = 1
171      currentScene.halo = 1      currentScene.halo = 1
172      doFrame(s,270,300)      pap_s = zoom0
173        doFrame(s,xs*pap_s,ys*pap_s)
174    
175      pap_x,pap_y,pap_s = -46,-180,1      pap_x,pap_y,pap_s = -46,-180,1
176      currentScene.text = 0      currentScene.text = 0
177      currentScene.halo = 1      currentScene.halo = 1
178      doFrame(s,270,300)      pap_s = zoom0
179        doFrame(s,xs*pap_s,ys*pap_s)
180    
181    
182  class Scene:  class Scene:

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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