View
214
Download
1
Category
Preview:
Citation preview
TECHNOLOGY CLUBWeek 11
Picture Taking Functions
takePicture(“color” | “gray”)Returns a picture object
Show(picture object)Will show the picture that was taken on the
screen
A = takePicture(“color”) or A = takePicture(“gray”)
A is a variable and can be any name, but is now a picture object
Taking Pictures with Variables
L = [] L.append(takePicture(“color”)) L is a list object and each time you call
append it adds to the List. Saving List as a animated GIF(Graphics
Interchange Format)savePicture(pictures, “c:\\temp\\movie.gif”)Open c:\temp\movie.gif
Taking Pictures with List
Take a Picture
Use your robots to take a picture and then show a picture, in the python shell
Do the same thing, but write it into a program (.py file)
Create an adventure movie Write a program (.py file) that will tell
Scribbler to take pictures of the objects that we have on the floor
Then save them to a movie that we can play.
Recommended