# Allison Obourn
# CS 115, Autumn 2021
# Lecture 8

# This program draws the outline of a circle in the center of the
# screen.

# NOTE: this program isn't finished! It animates in that it clears the
#       canvas and redraws every 50ms. However, nothing appears to
#       happen because we redraw the same exact shape in the same exact
#       place at the same exact size every time.

from ECGUI import *

def repeat():
    # clear off the canvas and redraw a circle
    canvas.clear()
    x = canvas.get_mouse_x()
    canvas.draw_oval(x, 235, 30, 30)

    

canvas = drawing_panel(300, 500, "white")
canvas.animate(50, repeat)
