![]() ![]() |
| |||||||||
| Hotspots: Slides and Code TA Corner Comments? Announcements FAQ Static Webspace | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| This is nothing to do with spacing or indentation. The problem is that you are trying to change a pixel that doesn't exist because your picture isn't big enough. (It is only 300 pixels high). Is this where you are copying the flowers? If so, try starting targetY with a lower number. It will appear a bit higher up in the picture. Send a TA your code or go to someone's office hours if this doesn't make sense. Colin Potts |
| Make sure that all your pictures are in the same folder and you choose that when you run the function. If you still have problems, email a TA with your code and the lines of code you used to run the function. - Bobby Mathew |
def hw2():
imageA = makePicture('imageA.jpg')
imageB = makePicture('imageB.jpg')
imageC = makePicture('imageC.jpg')
| All the errors you are reporting (this one and the ones below) sound as though you are not loading your code. Hit the load button. Colin Potts |
| Help us help you by saying exactly what the error is. Colin Potts |
| I posted several announcements about distance() last week. There was a bug that has been fixed. You should download JES 3.0 again if the above solution doesn't work. Colin Potts |
| It should work if you got the sun to copy over. Check the code with what was given in lecture and make sure you repain the picture after it copies, so you can see the changes. - Bobby Mathew |
| We will add a show(finalImage) statement at the end of the code if it isn't already there and then type setMediaPath() and hw2() in the black area. - Bobby Mathew |
| That's fine. - Bobby Mathew |
| addRectFilled(pic, startX, startY, width, height, makeColor(r, g, b)) - Bobby Mathew |