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_darker.py
1
import coloreffect
2
3
class C(coloreffect.ColorEffect):
4
def colmod(self,r,g,b):
5
FACTOR=0.9
6
r=int(round(max(r*FACTOR,0)))
7
g=int(round(max(g*FACTOR,0)))
8
b=int(round(max(b*FACTOR,0)))
9
return '%02x%02x%02x' % (r,g,b)
10
11
c = C()
12
c.affect()