added the matrix as parameter to the set prootscreen function

This commit is contained in:
CiscoTheWolf 2023-05-23 21:00:17 +02:00
parent dc2aa2c6d6
commit acf63c9b9a

View file

@ -56,7 +56,7 @@ class Point2D:
return (self.x, self.y) == (other.x, other.y)
def set_ProotScreen():
def set_ProotScreen(matrix):
prootScreen_frame_canvas = matrix.CreateFrameCanvas()
image_prootScreen = Image.open("faces/eyeLeftOpen.png")
prootScreen_frame_canvas.SetImage(image_prootScreen, unsafe=False)
@ -155,13 +155,7 @@ def interpolate_point_pairs(pairs: list[tuple[Point2D, Point2D]], percentage: fl
return interpolated_points
print("start setting ProotScreen")
startT = curr_time = round(time.time()*1000)
# setting ProotScreen, This is the loading splash screen
set_ProotScreen()
endT = curr_time = round(time.time()*1000)
print("setting ProotScreen took: " + str(endT - startT) + " ms")
@ -181,6 +175,14 @@ endT = curr_time = round(time.time()*1000)
print("configuring matrix took: " + str(endT - startT) + " ms")
print("start setting ProotScreen")
startT = curr_time = round(time.time()*1000)
# setting ProotScreen, This is the loading splash screen
set_ProotScreen(matrix)
endT = curr_time = round(time.time()*1000)
print("setting ProotScreen took: " + str(endT - startT) + " ms")
print("start loading images")
startT = curr_time = round(time.time()*1000)