Advertisement
Loadus

Inkscape - Less Contrast effect

Apr 3rd, 2011
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. import coloreffect
  2.  
  3. class C(coloreffect.ColorEffect):
  4.   def colmod(self,r,g,b):
  5.     return '%02x%02x%02x' % (((r*0.75)+(255*0.25)),((g*0.75)+(255*0.25)),((b*0.75)+(255*0.25)))
  6.  
  7. c = C()
  8. c.affect()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement