mirror of
https://github.com/scrtwpns/mixbox.git
synced 2026-03-19 22:49:41 +01:00
10 lines
163 B
Python
10 lines
163 B
Python
import mixbox
|
|
|
|
rgb1 = (0, 33, 133) # blue
|
|
rgb2 = (252, 211, 0) # yellow
|
|
t = 0.5 # mixing ratio
|
|
|
|
rgb_mix = mixbox.lerp(rgb1, rgb2, t)
|
|
|
|
print(rgb_mix)
|