/[gzz]/gzz/gfx/libpaper/texcomb_NV1X.py
ViewVC logotype

Diff of /gzz/gfx/libpaper/texcomb_NV1X.py

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

revision 1.14 by jvk, Mon Sep 30 14:04:26 2002 UTC revision 1.15 by jvk, Thu Oct 3 16:12:11 2002 UTC
# Line 2  Line 2 
2  # are only two of them.  # are only two of them.
3    
4  from gfx.libutil import nvcode  from gfx.libutil import nvcode
5    
6    from gfx.libcolor.spaces import RGBtoLAB
7            
8  class TransparentCombinerPass:  class TransparentCombinerPass:
9      def setupCode(self, texinputs, colors, rnd, trans = 0):      def setupCode(self, texinputs, colors, rnd, trans = 0):
# Line 10  class TransparentCombinerPass: Line 12  class TransparentCombinerPass:
12          c0, c1, c2, c3 = [ colors.getColorStr(colorbase+i)          c0, c1, c2, c3 = [ colors.getColorStr(colorbase+i)
13                                  for i in range(0,4) ]                                  for i in range(0,4) ]
14    
15            #print [round( RGBtoLAB(map(float, rgb.split()))[0] ) for rgb in [c0,c1,c2] ]
16    
17          r0, r1, r2, r3 = [ colors.getNVDP3VecStr(colorbase+i)          r0, r1, r2, r3 = [ colors.getNVDP3VecStr(colorbase+i)
18                                  for i in range(0,4) ]                                  for i in range(0,4) ]
19    

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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