def cgol_draw(cell):
    assert cell is not None
    portrayal = {"Shape": "rect", "w": 1, "h": 1, "Filled": "true", "Layer": 0}
    x, y = cell.getX(), cell.getY()
    portrayal["x"] = x
    portrayal["y"] = y
    colors = {CGoLCell.DEAD: "white",
              CGoLCell.ALIVE: "black"}
    portrayal["Color"] = colors[cell.getState()]
    return portrayal

# Make a world that is 50x50, on a 250x250 display.
Update our knowledge of the window's width and height.
dataset/ETHPy150Open projectmesa/mesa/examples/ConwaysGameOfLife/cgol_main.py/cgol_draw--crossover with--dataset/ETHPy150Open jorgecarleitao/pyglet-gui/pyglet_gui/manager.py/Manager.on_resize