import pygame def centre(surface: pygame.Surface, rect: tuple[int, int, int, int]) -> pygame.Surface: """ Centres a surface within a given rectangle. Args: surface: The surface to be centred. rect: The rectangle the surface will be centred in. Returns: pygame.Surface """ pass