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

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

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

revision 1.3 by jvk, Sun Sep 15 10:22:13 2002 UTC revision 1.4 by jvk, Sun Sep 15 10:49:06 2002 UTC
# Line 111  class PaperScene: Line 111  class PaperScene:
111          self.pq = getpaper(self.seed)          self.pq = getpaper(self.seed)
112    
113      def key(self, k):      def key(self, k):
114            global tex0comb,tex1comb,isectcomb
115          global x0, y0, x1, y1          global x0, y0, x1, y1
116          oldseed = self.seed          oldseed = self.seed
117          if k == "v":          if k == "v":
# Line 120  class PaperScene: Line 121  class PaperScene:
121          elif k == "Left": x0 -= 20          elif k == "Left": x0 -= 20
122          elif k == "Right": x0 += 20          elif k == "Right": x0 += 20
123          elif k == "F1":          elif k == "F1":
             global tex0comb  
124              list = tex0codes.keys()              list = tex0codes.keys()
125              tex0comb = list[(list.index(tex0comb) + 1) % len(list)]              tex0comb = list[(list.index(tex0comb) + 1) % len(list)]
126              print "Using", tex0comb, tex1comb, isectcomb, "combiners"              print "Using", tex0comb, tex1comb, isectcomb, "combiners"
127              self.initpaper()              self.initpaper()
128          elif k == "F2":          elif k == "F2":
             global tex1comb  
129              list = tex1codes.keys()              list = tex1codes.keys()
130              tex1comb = list[(list.index(tex1comb) + 1) % len(list)]              tex1comb = list[(list.index(tex1comb) + 1) % len(list)]
131              print "Using", tex0comb, tex1comb, isectcomb, "combiners"              print "Using", tex0comb, tex1comb, isectcomb, "combiners"
132              self.initpaper()              self.initpaper()
133          elif k == "F3":          elif k == "F3":
             global isectcomb  
134              list = isectcodes.keys()              list = isectcodes.keys()
135              isectcomb = list[(list.index(isectcomb) + 1) % len(list)]              isectcomb = list[(list.index(isectcomb) + 1) % len(list)]
136              print "Using", tex0comb, tex1comb, isectcomb, "combiners"              print "Using", tex0comb, tex1comb, isectcomb, "combiners"

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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