/[gzz]/gzz/gfx/demo/color/colors.py
ViewVC logotype

Diff of /gzz/gfx/demo/color/colors.py

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

revision 1.2 by benja, Wed Sep 4 22:06:00 2002 UTC revision 1.3 by jvk, Thu Sep 19 09:41:47 2002 UTC
# Line 92  class ColorScene: Line 92  class ColorScene:
92              str += "End\n"              str += "End\n"
93              self.hslhexes[b] = getDList(str)              self.hslhexes[b] = getDList(str)
94          return self.hslhexes[b]          return self.hslhexes[b]
95      def scene(self):      def scene(self, vs):
         d = w.getSize()  
96          putnoc(vs, background((0.5,0.5,0.5)))          putnoc(vs, background((0.5,0.5,0.5)))
97    
98          putnoc(vs, getDList("""          putnoc(vs, getDList("""
# Line 116  class ColorScene: Line 115  class ColorScene:
115              PopAttrib              PopAttrib
116          """))          """))
117    
118          return vs  
119  class CIELABScene:  class CIELABScene:
120      def __init__(self):      def __init__(self):
121          self.labhexes = {}          self.labhexes = {}
# Line 211  class CIELABScene: Line 210  class CIELABScene:
210              End              End
211          """          """
212      def scene(self, vs):      def scene(self, vs):
         d = w.getSize()  
213          putnoc(vs, background((1.0,1.0,1.0)))          putnoc(vs, background((1.0,1.0,1.0)))
214    
215          putnoc(vs, getDList("""          putnoc(vs, getDList("""
# Line 256  class CIELABScene: Line 254  class CIELABScene:
254              PopAttrib              PopAttrib
255          """))          """))
256    
         return vs  
   
257    
258  def lightcolor():  def lightcolor():
259      c = (0,0,0)      c = (0,0,0)
# Line 290  class PaletteScene: Line 286  class PaletteScene:
286      def key(self, k):      def key(self, k):
287          if k == "v":          if k == "v":
288              self.recolor()              self.recolor()
289      def scene(self):      def scene(self, vs):
         d = w.getSize()  
290          putnoc(vs, background((0.5,0.5,0.5)))          putnoc(vs, background((0.5,0.5,0.5)))
291    
292          putnoc(vs, getDList("""          putnoc(vs, getDList("""
# Line 309  class PaletteScene: Line 304  class PaletteScene:
304              PopAttrib              PopAttrib
305          """))          """))
306    
         return vs  
   
307  currentScene = CIELABScene()  currentScene = CIELABScene()
308    
309  def globalkey(k):  def globalkey(k):

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

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