This commit is contained in:
Andras Schmelczer 2026-05-03 15:03:33 +01:00
commit 91a723e40d
8 changed files with 283 additions and 0 deletions

6
utils.py Normal file
View file

@ -0,0 +1,6 @@
def clamp(x, min_value, max_value):
return max(min(x, max_value), min_value)
def mix(a, b, mix):
return a * (1 - mix) + b * mix