Horje
fading hex color python Code Example
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)




Python

Related
How to restart a loop Code Example How to restart a loop Code Example
search for file in a whole system Code Example search for file in a whole system Code Example
loop only to  the 6th element python Code Example loop only to the 6th element python Code Example
delete specific indeces from numpy array Code Example delete specific indeces from numpy array Code Example
add service files in setup.py ROS2 Code Example add service files in setup.py ROS2 Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6