This preview shows page 1. Sign up to view the full content.
Unformatted text preview: g to happen. Infinite Loops
If your program goes into an infinite loop, it does not pause and wait, constantly demands attention. OS stops it now and then to handle necessary business, but always gives control back to your program. Your machine does not lock up, but slows way down. Our Animation Loop
alive = True while alive: alive = gr.sleep(.5) gr.sleep(.5) The gr.sleep() function is where we pause and gr.sleep() let other programs run. Well, actually, we call the function in ecs10graphics07.py, whi...
View Full Document
This note was uploaded on 04/14/2008 for the course ECS 10 taught by Professor Amenta during the Fall '07 term at UC Davis.
- Fall '07