Download presentation
Presentation is loading. Please wait.
Published byCecil Joseph Modified over 9 years ago
1
Week 11
2
Picture Taking Functions takePicture(“color” | “gray”) Returns a picture object Show(picture object) Will show the picture that was taken on the screen
3
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
4
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
5
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)
6
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.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.