import coloreffect class C(coloreffect.ColorEffect): def colmod(self,r,g,b): return '%02x%02x%02x' % (0,g,b) c = C() c.affect()