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