# rising_sun.py # watch the sunrise! # version 0.1 from graphics import * from random import uniform def main(): window = GraphWin("Rising Sun", 600, 350) # how do we make the sky blue? sun_x = 300 sun_y = 400 center = Point(sun_x, sun_y) sun = Circle(center, 50) # how do we make the sun yellow? sun.draw(window) dx = 0 # find a way to change this for each run dy = -20 while sun_y > 0: sun.move(dx, dy) sun_x += dx sun_y += dy window.getMouse() window.getMouse() window.close() main()