![]() ![]() |
| |||||||||
| Hotspots: Slides and Code TA Corner Comments? Announcements FAQ Static Webspace | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| str converts any given input into a string. -Blake O'Hare |
| either would work. remember when you "set it before" you're just putting that name into a variable to be used later. Amanda Bennett |
| Almost. Check the direction the text is moving again. Try plugging in values to see what you get for x and y. -poof #10 |
| The line actually reads... num = str(frame) but look at this line... writePictureTo(canvas, directory + '//frame' + num + '.jpg') and think about what the variable 'num' is right there. The line under that is an if statement that is just testing a condition. If the LHS is equal to the RHS, then it executes the code that is indented underneath it, if not, it skips it and moves on. -poof #10 |
| How else would Python know which picture to write to the file? Colin Potts |
also "What do the frame names look like?" is it 1-9 frame0#.jpg and frame 10> frame#.jpg?