![]() ![]() |
| |||||||||
| Hotspots: Slides and Code TA Corner Comments? Announcements FAQ Static Webspace | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| As in don't put spaces in the middle of names, don't call variables things like def or if, don't start names with arbitrary punctuation symbols or digits, etc. See Appendix A.1 Colin Potts |
| The material on the Test 1 Review page, including the book sections referenced. There is nothing in the Section B test on stuff that I covered this week. Colin Potts |
| As the review is very similar to last semester's (shh! Big secret!), but with the nested loop stuff out of it, then even for Monica's section, you can probably (I quantify everything. Usually.) expect the test to only cover the stuff the review is up to; the range() and nested for loop stuff (or whatever crazy funness she's been doing lately) isn't gonna be seen. Chris Phillips |
Yep.if color == 'red': do stuffis the statement you'll likely want. Where color is whatever the parameter name you've given the third parameter. Chris Phillips |
| Check the slides and code page, specifically, the 'Loops for Pictures' PDF that Monica put up. Chris Phillips |
| Apostrophes serve the same purpose as quotation marks, but there are reasons why you would use one and not the other. Don't worry about these reasons, they will be explained later. Thanks! Brittany Duncan |
| No; just the principles. You should know that you can make a grayscale by averaging the three color channels, but you don't need to know any more sophisticated weighting schemes. As for posterizing, there is no single formula. We showed a couple of different approaches (in class and in the homework) that are different. What they have in common is reducing a 16M color palette into a handful of colors. Colin Potts |