/[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.22 by tjl, Thu Sep 12 15:48:12 2002 UTC revision 1.23 by jvk, Thu Sep 19 13:01:28 2002 UTC
# Line 57  def globalkey(k): Line 57  def globalkey(k):
57          rotatelist(zoom)          rotatelist(zoom)
58      if k == "x":      if k == "x":
59          rotatelist(paperzoom)          rotatelist(paperzoom)
60        if k == "c":
61            global cmap
62            cmap = GZZGL.createLABColorMap(100, 100, 100, 100);
63            currentScene = ColorMapScene()
64            AbstractUpdateManager.setNoAnimation()
65    
66  def dobenchmark(w, vs):  def dobenchmark(w, vs):
67      global benchmark      global benchmark
# Line 249  def putText(vs, cs1, text, color = None, Line 253  def putText(vs, cs1, text, color = None,
253          PopAttrib          PopAttrib
254      """))      """))
255    
256    
257    class ColorMapScene:
258        def __init__(self):
259            self.bgcolor = (0,0,0)
260        def key(self, k):
261            pass
262        def scene(self, vs):
263            putnoc(vs, background(self.bgcolor))
264    
265            cs1 = vs.coords.affineCoordsys(0, "1", 10, 600, 500, 1, 0, 0, 1)
266    
267            vs.map.put(cmap, cs1)
268        
269    
270  class DummyScene:  class DummyScene:
271      def __init__(self):      def __init__(self):
272          self.bgcolor = (1,1,1)          self.bgcolor = (1,1,1)

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

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