I am using python 2.7, I would like to know if there is a way to centre an image in pygame. I have set the screen to fullscreen, is this possible? If it helps i will attach the code, thanks.import pygameimport os
_image_library = {}def get_image(path):global _image_libraryimage = _image_library.get(path)if image == None:canonicalized_path = path.replace('/', os.sep).replace('\\', os.sep)image = pygame.image.load(canonicalized_path)_image_library[path] = imagereturn imagepygame.init()screen = pygame.display.set_mode((0, 0))done = Falseclock = pygame.time.Clock()while not done:for event in pygame.event.get():if event.type == pygame.QUIT:done = Truescreen.fill((0, 0, 0))screen.blit(get_image('sw.png'), (0, 0)pygame.display.flip()clock.tick(60)