color_custom.py revision b93ce4197e7f5026a1c8deeb79cbd00aa3f86d91
import coloreffect
class C(coloreffect.ColorEffect):
help="red channel function")
help="green channel function")
help="blue channel function")
dest="tab",
help="The selected UI-tab when OK was pressed")
dest="scale",
help="The input (r,g,b) range")
if v<0:
return 0.0
return v
# add stuff to be accessible from within the custom color function here.
try:
except:
c = C()
c.affect()