예제 #1
0
 def functorFunc(self = self, startColor = startColor,
                 endColor = endColor):
     from pandac import ColorLerpFunctor
     # start color and end vec
     functor = ColorLerpFunctor.ColorLerpFunctor(
         self, startColor, endColor)
     return functor
예제 #2
0
 def functorFunc(self = self, sr = sr, sg = sg, sb = sb, sa = sa,
                 er = er, eg = eg, eb = eb, ea = ea):
     from pandac import ColorLerpFunctor
     # start and end rgba values
     functor = ColorLerpFunctor.ColorLerpFunctor(self, sr, sg, sb, sa,
                                                 er, eg, eb, ea)
     return functor
예제 #3
0
 def functorFunc(self = self, endColor = endColor):
     from pandac import ColorLerpFunctor
     # just end vec4, use current color for start
     startColor = self.getColor()
     functor = ColorLerpFunctor.ColorLerpFunctor(
         self, startColor, endColor)
     return functor
예제 #4
0
 def functorFunc(self=self, r=r, g=g, b=b, a=a):
     from pandac import ColorLerpFunctor
     # just end rgba values, use current color rgba values for start
     startColor = self.getColor()
     functor = ColorLerpFunctor.ColorLerpFunctor(self, startColor[0],
                                                 startColor[1],
                                                 startColor[2],
                                                 startColor[3], r, g, b, a)
     return functor