Assignment for week2

This is my assignment for week2.

I made a film opening time counter. I used frameRate() instead of millis() or sencond() to control the time, for millis() was based on the time in my computer and would keep going. I don’t know how to control it.

Then I met a problem that after I loaded an image, the sketch freezed and the counter was inaccurate. Then I found a new function in processing.org named requestImage which can solve this problem, but it’s a little troublesome.

I want to know more about how to handle these sort of problems in a simple way.