color_brighter.py revision b97c841ca6aa0a4f8ff56e7760e85b2d57d95b15
import coloreffect
class C(coloreffect.ColorEffect):
FACTOR=0.9
if r==0 and g==0 and b==0:
return '%02x%02x%02x' % (i,i,i)
if r>0 and r<i:
r=i
if g>0 and g<i:
g=i
if b>0 and b<i:
b=i;
return '%02x%02x%02x' % (r,g,b)
c = C()
c.affect()