mirror of
https://github.com/scrtwpns/mixbox.git
synced 2026-03-19 14:39:27 +01:00
add mixbox for python
This commit is contained in:
9
python/examples/hello.py
Normal file
9
python/examples/hello.py
Normal 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)
|
||||
Reference in New Issue
Block a user