diff --git a/rpi/blinkingTest.py b/rpi/blinkingTest.py index 9e18a0d..809e369 100644 --- a/rpi/blinkingTest.py +++ b/rpi/blinkingTest.py @@ -43,8 +43,8 @@ fullBlinkImage = pure_pil_alpha_to_color_v2(image) DesiredBlinkState = 0 currentBlinkState = 0 -blinkFrameCanvases = [] -for alpha in range(0,11,1): +blinkFrameCanvases = {} +for alpha in range(10): offscreen_interpolated_canvas = matrix.CreateFrameCanvas() interpolated_image = image_interpolation(noBlinkImage, fullBlinkImage, alpha/10) blinkFrameCanvases[alpha] = offscreen_interpolated_canvas.SetImage(interpolated_image)