print to stderr

This commit is contained in:
themancalledjakob 2024-11-15 20:16:59 +01:00
parent 36ae68761d
commit cb40391e0d

View file

@ -68,6 +68,10 @@ def open_file_browser(directory):
# xdg-open *should* be supported by recent Gnome, KDE, Xfce # xdg-open *should* be supported by recent Gnome, KDE, Xfce
def printerr(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
# # Evaluate a bezier curve for the parameter 0<=t<=1 along its length # # Evaluate a bezier curve for the parameter 0<=t<=1 along its length
# def evaluateBezierPoint(p1, h1, h2, p2, t): # def evaluateBezierPoint(p1, h1, h2, p2, t):
# return ((1 - t)**3) * p1 + (3 * t * (1 - t)**2) * h1 + (3 * (t**2) * (1 - t)) * h2 + (t**3) * p2 # return ((1 - t)**3) * p1 + (3 * t * (1 - t)**2) * h1 + (3 * (t**2) * (1 - t)) * h2 + (t**3) * p2