MCPcopy Index your code
hub / github.com/ndleah/python-mini-project / fade

Function fade

Othello-Reversi-Game/main.py:5–12  ·  view source on GitHub ↗
(*surfacencoords: tuple)

Source from the content-addressed store, hash-verified

3
4# fade multiple surfaces on the screen
5def fade(*surfacencoords: tuple):
6 for alpha in range(0, 257, 6):
7 for snc in surfacencoords:
8 surface, coordinates = snc
9 surface.set_alpha(alpha)
10 screen.blit(surface, coordinates)
11 pygame.time.delay(30)
12 pygame.display.flip()
13
14# board initialisations
15game_board = Board()

Callers 1

main.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected