even more bug fixes

This commit is contained in:
CiscoTheWolf 2023-05-21 23:11:31 +02:00
parent c1012bae29
commit 515cf1b150

View file

@ -44,10 +44,10 @@ fullBlinkImage = pure_pil_alpha_to_color_v2(image)
DesiredBlinkState = 0
currentBlinkState = 0
blinkFrameCanvases = []
for alpha in range(0,1,(1/10)):
for alpha in range(0,11,1):
offscreen_interpolated_canvas = matrix.CreateFrameCanvas()
interpolated_image = image_interpolation(noBlinkImage, fullBlinkImage, alpha)
blinkFrameCanvases[alpha*10] = offscreen_interpolated_canvas.SetImage(interpolated_image)
interpolated_image = image_interpolation(noBlinkImage, fullBlinkImage, alpha/10)
blinkFrameCanvases[alpha] = offscreen_interpolated_canvas.SetImage(interpolated_image)
# offscreen canvas that can be written to and then set to the matrix asynchronously
offscreen_canvas = matrix.CreateFrameCanvas()