Introduction to Computer Science
Union College
Spring 2009

Blinking Circle

For this exercise, you can start from still_circle.py.

Your task is to make the circle blink in different colors; every 500 milliseconds, it should change its color going back and forth between two colors.

For this exercise, you need to keep time - that means, you need to add a clock like you did yesterday.

You need a timer/counter variable which adds up the time that is passing.

If this timer gets to a certain threshold (like 500 milliseconds), you need to change the color and reset the timer/counter.

Remember: Draft your code on paper - then show it to me and explain what you are planning on doing - then implement. I will only look at your code after you have talked me through your idea on paper.

by Kristina Striegnitz