def lighter(color, percent):
    """assumes color is rgb between (0, 0, 0) and (255, 255, 255)"""
color = np.array(color)
white = np.array([255, 255, 255])
vector = white - color
return color + vector * percent
How to fade color