From d66153b87ae81f884aaf96b533ae5569a3fabf6f Mon Sep 17 00:00:00 2001 From: miteruzo Date: Tue, 10 Dec 2024 03:55:16 +0000 Subject: [PATCH] #31 Xonzitu sagefu-bun --- test.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index e7bd247..68bbdff 100644 --- a/test.py +++ b/test.py @@ -11,6 +11,8 @@ from pygame import Surface from pygame.time import Clock +FPS = 24 + def main ( ) -> None: pygame.init () @@ -56,7 +58,7 @@ class Game: for redrawer in sorted (self.redrawers, key = lambda x: x['layer']): redrawer['func'] () pygame.display.update () - self.clock.tick (24) + self.clock.tick (FPS) class GameObject: @@ -187,5 +189,14 @@ def get_surfaces_from_video ( return surfaces +def set_chroma_key ( + surface: Surface, + color: tuple[int, int, int], + tolerance: int, +) -> Surface: + # ChatGPT o kwakunin suru kutu + ... + + if __name__ == '__main__': main ()