Coverage for /usr/local/lib/python3.11/dist-packages/grond/plot/common.py: 50%

4 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-10-26 16:23 +0000

1 

2def light(color, factor=0.5): 

3 return tuple(1-(1-c)*factor for c in color) 

4 

5 

6def dark(color, factor=0.5): 

7 return tuple(c*factor for c in color)