graphics module
- class graphics.Graphics
Bases:
object
Pygame Graphics Controller
- black = (51, 51, 51)
- buttons = {}
- color_tile(coord: tile.Coordinate, color: pygame.Color)
Colors tile located in grid at Coordinate(x, y)
- Parameters
coord (tile.Coordinate) – Coordinate of tile to be colored
color (pg.Color) – RGB color
- green = (45, 200, 105)
- grey = (131, 131, 131)
- height = 500
- screen: pygame.Surface
- white = (245, 245, 245)
- width = 500