Code

Snapping: improve calculation of metrics for scaling, modify some comments, and remov...
[inkscape.git] / share / extensions / color_darker.py
1 #!/usr/bin/env python
2 import coloreffect
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)
12 c = C()
13 c.affect()