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