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): |
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 |
|
|