tokkee.org
Code
projects
/
inkscape.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Partial fix for "make check" compilation failure.
[inkscape.git]
/
share
/
extensions
/
color_desaturate.py
1
import coloreffect
2
3
class C(coloreffect.ColorEffect):
4
def colmod(self,r,g,b):
5
l = (max(r,g,b)+min(r,g,b))/2
6
ig=int(round(l))
7
return '%02x%02x%02x' % (ig,ig,ig)
8
9
c = C()
10
c.affect()