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

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

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

revision 1.56 by tjl, Sun Dec 1 22:39:34 2002 UTC revision 1.57 by jvk, Wed Dec 4 11:12:16 2002 UTC
# Line 94  def dobenchmark(w, vs): Line 94  def dobenchmark(w, vs):
94          print "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Time of", iters, "renders:", t, "s"          print "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Time of", iters, "renders:", t, "s"
95    
96    
97  zoom = 900  zoom = 900.0
98    
99    
100  passmask = [1,1,1,1]  passmask = [1,1,1,1]
# Line 178  class PaperScene: Line 178  class PaperScene:
178          h = size.height          h = size.height
179    
180          cs1 = vs.coords.affineCoordsys(0, 10, 0, 0, w, 0, 0, h)          cs1 = vs.coords.affineCoordsys(0, 10, 0, 0, w, 0, 0, h)
181          scale = zoom          scale = float(zoom)
182          cs2 = vs.coords.affineCoordsys(0, 0, 0, 0, scale / w, 0, 0, scale / h)          cs2 = vs.coords.affineCoordsys(0, 0, 0, 0, scale / w, 0, 0, scale / h)
183    
184          cs1left = vs.coords.ortho(cs1, 0, 0, 0, .5, 1)          cs1left = vs.coords.ortho(cs1, 0, 0, 0, .5, 1)
# Line 187  class PaperScene: Line 187  class PaperScene:
187          cs2left = vs.coords.ortho(0, 0, 0, 0, scale / w * 2, scale / h)          cs2left = vs.coords.ortho(0, 0, 0, 0, scale / w * 2, scale / h)
188          cs2right = vs.coords.ortho(0, 0, -1, 0, scale / w * 2, scale / h)          cs2right = vs.coords.ortho(0, 0, -1, 0, scale / w * 2, scale / h)
189    
190            print scale, w, h
191    
192          vs.matcher.add(cs1, "1")          vs.matcher.add(cs1, "1")
193          vs.matcher.add(cs2, "2")          vs.matcher.add(cs2, "2")
194    
# Line 311  class MultiPaperScene: Line 313  class MultiPaperScene:
313          cs1w = .47*size.width/self.w          cs1w = .47*size.width/self.w
314          cs1h = .47*size.height/self.h          cs1h = .47*size.height/self.h
315    
316          scale = zoom          scale = float(zoom)
317          cs2 = vs.coords.affineCoordsys(0, 1, 0, 0, scale/cs1w, 0, 0, scale/cs1h)          cs2 = vs.coords.affineCoordsys(0, 1, 0, 0, scale/cs1w, 0, 0, scale/cs1h)
318          vs.matcher.add(cs2, "tex")          vs.matcher.add(cs2, "tex")
319    

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57

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