tokkee.org
Code
projects
/
inkscape.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge from trunk.
[inkscape.git]
/
share
/
extensions
/
color_darker.py
1
#!/usr/bin/env python
2
import coloreffect
3
4
class C(coloreffect.ColorEffect):
5
def colmod(self,r,g,b):
6
FACTOR=0.9
7
r=int(round(max(r*FACTOR,0)))
8
g=int(round(max(g*FACTOR,0)))
9
b=int(round(max(b*FACTOR,0)))
10
return '%02x%02x%02x' % (r,g,b)
11
12
c = C()
13
c.affect()