PictureSequence.py

From IPRE Wiki
Jump to: navigation, search

'''
 Takes a sequence of pictures then displays them in rapid succession
 
 @author Douglas Harms 
'''

from myro import *

init()

images = []

for i in range(10):
    images.append (takePicture())
    turnLeft( 0.3, 0.1 )

again = "Yes"
while again == "Yes":
    for i in range(10):
        show(images[i])
        wait(0.5)
        
    again = askQuestion( "Would you like to see it again?" )