![]() ![]() |
| |||||||||
| This page removed for FERPA compliance | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| int truncates a decimal. >>>int(3.1) 3 >>>int(10.9999) 10 >>>int(4) 4 etc. Pixels exist at integer coordinates. The purpose here is to make sure you don't call getPixel at a decimal coordinate. -Student1680 |
| Try running it. Then open both the pictures in media tools and figure out where these coordinates are. Then when you go back to tracing the code it'll probably be easier to see how it all happened. But be careful: make sure you still know how to trace code effectively without REMOVEDing JES since you won't have JES on the test. -Student1680 |
| The prints are what's killing it. Comment those out and try again. -Student1680 |
| BecaREMOVEDe you didn't download the file and put it in the proper directory. -Student1680 |
| Source x and source y are where you are copying from. Depending on the ratio you are going to increase the value of source x and source y by a certain number. If the ratio is .5 then you will increase them by 2 becaREMOVEDe 1/.5 equals 2. REMOVEDwever the target x and target y will always increase by 1. -Student2081 |