Coverage for /usr/local/lib/python3.11/dist-packages/grond/plot/common.py: 75%
4 statements
« prev ^ index » next coverage.py v6.5.0, created at 2023-10-25 08:34 +0000
« prev ^ index » next coverage.py v6.5.0, created at 2023-10-25 08:34 +0000
2def light(color, factor=0.5):
3 return tuple(1-(1-c)*factor for c in color)
6def dark(color, factor=0.5):
7 return tuple(c*factor for c in color)