Fixed drawing mistakes in ProotScreen.
Sped up ProotScreen animation.
This commit is contained in:
parent
989adc603d
commit
bdcb648765
3 changed files with 3 additions and 3 deletions
Binary file not shown.
Before ![]() (image error) Size: 1 KiB After ![]() (image error) Size: 1 KiB ![]() ![]() |
Binary file not shown.
Before ![]() (image error) Size: 1 KiB After ![]() (image error) Size: 1 KiB ![]() ![]() |
|
@ -78,7 +78,7 @@ class ProotState:
|
|||
|
||||
def set_ProotScreen(self, matrix):
|
||||
self.loading_time += 1
|
||||
self.loading_time = self.loading_time % 90
|
||||
self.loading_time = self.loading_time % 75
|
||||
if not self.frame_canvas_prootScreen_1:
|
||||
self.frame_canvas_prootScreen_1 = matrix.CreateFrameCanvas()
|
||||
image_proot_screen_1 = Image.open("faces/ProotScreen1.png").convert('RGB')
|
||||
|
@ -96,9 +96,9 @@ class ProotState:
|
|||
self.frame_canvas_prootScreen_3.SetImage(image_proot_screen_3, unsafe=False)
|
||||
matrix.SwapOnVSync(self.frame_canvas_prootScreen_3)
|
||||
|
||||
if self.loading_time < 30:
|
||||
if self.loading_time < 25:
|
||||
matrix.SwapOnVSync(self.frame_canvas_prootScreen_1)
|
||||
elif self.loading_time < 60:
|
||||
elif self.loading_time < 50:
|
||||
matrix.SwapOnVSync(self.frame_canvas_prootScreen_2)
|
||||
else:
|
||||
matrix.SwapOnVSync(self.frame_canvas_prootScreen_3)
|
||||
|
|
Loading…
Add table
Reference in a new issue