even more bug fixes, list of frames is now a dict

This commit is contained in:
CiscoTheWolf 2023-05-21 23:16:13 +02:00
parent 9dd5937ccd
commit 760d263ee5

View file

@ -43,8 +43,8 @@ fullBlinkImage = pure_pil_alpha_to_color_v2(image)
DesiredBlinkState = 0 DesiredBlinkState = 0
currentBlinkState = 0 currentBlinkState = 0
blinkFrameCanvases = [] blinkFrameCanvases = {}
for alpha in range(0,11,1): for alpha in range(10):
offscreen_interpolated_canvas = matrix.CreateFrameCanvas() offscreen_interpolated_canvas = matrix.CreateFrameCanvas()
interpolated_image = image_interpolation(noBlinkImage, fullBlinkImage, alpha/10) interpolated_image = image_interpolation(noBlinkImage, fullBlinkImage, alpha/10)
blinkFrameCanvases[alpha] = offscreen_interpolated_canvas.SetImage(interpolated_image) blinkFrameCanvases[alpha] = offscreen_interpolated_canvas.SetImage(interpolated_image)