Answers for "fading hex color python"

0

fading hex color python

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)
Posted by: Guest on May-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language