module: util
the util module holds a bunch of utility functions to make life easier
euclidean_distance(a: list[float], b: list[float]) -> float
generate the euclidean distance between 2 n dimensional points
from util import euclidean_distance
euclidean_distance([0, 0], [3, 4]) # gives 5
Timing functions
different timing functions can be used with the lerp function to change its behaviour
please be aware that some function may go outside the 0 - 1 range that lerp expects so may produce unwanted effects
interactive timing websiteease_in_sineease_out_sineease_in_out_sineease_in_cubicease_out_cubicease_in_out_cubicease_in_qunintease_out_quintease_in_out_quintease_in_circease_out_circease_in_out_circease_in_elasticease_out_elasticease_in_out_elastic
ease_in_quadease_out_quadease_in_out_quadease_in_quartease_out_quartease_in_out_quartease_in_expoease_out_expoease_in_out_expoease_in_backease_out_backease_in_out_backease_in_bounceease_out_bounceease_in_out_bounce
from util import ease_in_out_quad
pixel.lerp((0, 0, 0), 10, fn=ease_in_out_quad)