/[gzz]/gzz/gfx/util/papersampler.py
ViewVC logotype

Diff of /gzz/gfx/util/papersampler.py

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

revision 1.6 by tjl, Mon Mar 3 12:54:48 2003 UTC revision 1.7 by tjl, Mon Mar 3 13:50:49 2003 UTC
# Line 14  from gzz.gfx.gl import GL, GLRen, GLSpan Line 14  from gzz.gfx.gl import GL, GLRen, GLSpan
14  from gfx.util.misc import *  from gfx.util.misc import *
15  from gfx.libutil import saveanim      from gfx.libutil import saveanim    
16    
17    from gfx.util import misc
18    
19  import traceback  import traceback
20    
21  xs = 1024  xs = 1024
# Line 61  def getpaper(seed, opts): Line 63  def getpaper(seed, opts):
63    
64            
65  def paperscene(vs, seed, opts):  def paperscene(vs, seed, opts):
     putnoc(vs, background((.36, .74, 1.0)))  
66      scale = 1      scale = 1
67            
68      cs1 = vs.affineCS(0, "1", 10, .5 * xs, .5 * ys, ys, 0, 0, ys)      cs1 = vs.affineCS(0, "1", 10, .5 * xs, .5 * ys, ys, 0, 0, ys)
# Line 71  def paperscene(vs, seed, opts): Line 72  def paperscene(vs, seed, opts):
72    
73  def doFrame(scene, filename):  def doFrame(scene, filename):
74      vs = w.createVobScene()      vs = w.createVobScene()
75        vs.put(background((.36, .84, 1.0)))
76      scene(vs)      scene(vs)
77      w.renderStill(vs, 0)      w.renderStill(vs, 0)
78      saveanim.saveframe(filename, w)      saveanim.saveframe(filename, w)

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

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