📅  最后修改于: 2022-03-11 14:46:50.851000             🧑  作者: Mango
def lerp(a, b, t):
return a*(1 - t) + b*t
import numpy as np
white = np.array([255, 255, 255])
my_color = np.array([...])
lightened25 = lerp(my_color, white, 0.25)