add mixbox for python

This commit is contained in:
Ondrej Jamriska
2022-09-21 05:05:52 +02:00
parent 4bfc462204
commit 334932d8fe
7 changed files with 384 additions and 0 deletions

9
python/examples/hello.py Normal file
View File

@@ -0,0 +1,9 @@
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)