Exemplo n.º 1
0
def update(win: GraphWin, sun: Circle):
    if sun.getP1().x - sun.getRadius() > win.width:
        sun.move(-win.width - 2 * sun.getRadius() - 20, 0)
    sun.move(1, 0)