(image, is_game_started=False)
| 108 | |
| 109 | |
| 110 | def draw_bg(image, is_game_started=False): |
| 111 | if not is_game_started: |
| 112 | blurred_bg = blur_bg(image) |
| 113 | blurred_bg = pygame.surfarray.make_surface(np.transpose(blurred_bg, (1, 0, 2))) |
| 114 | blurred_bg = pygame.transform.scale(blurred_bg, (SCREEN_WIDTH, SCREEN_HEIGHT)) |
| 115 | screen.blit(blurred_bg, (0, 0)) |
| 116 | else: |
| 117 | image = pygame.surfarray.make_surface(np.transpose(image, (1, 0, 2))) |
| 118 | image = pygame.transform.scale(image, (SCREEN_WIDTH, SCREEN_HEIGHT)) |
| 119 | screen.blit(image, (0, 0)) |
| 120 | |
| 121 | |
| 122 | def draw_button(text, font, text_col, button_col, x, y, width, height): |
no test coverage detected