![]() ![]() |
| |||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| I didn't have you do an AUDIO collage. HW2 is definitely a PICTURE collage. Mark Guzdial |
| Kyle, I'll go over the main method in recitation today (Sep 12). #4 |
| Which line, Kyle? No, you should run your main() by choosing to "Run the Document's Main Method" under the Tools menu. Mark Guzdial |
| Krista, try changing the backslashes ("\") to forward slashes ("/"). The backslash is a special character when put in a string and it looks like it's causing a syntax error. #4 |
| Krista, the red, green, blue values must be integers between 0 and 255, inclusive. If that's not your problem, then you'll have to be more specific. #4 |
| Sure! Mark Guzdial |
| Is it possible to fill the canvas with a color? Absolutely. But we don't give you a pre-defined method to do it. If you want to fill with a color, you'll have to define a method to do it – which really shouldn't be hard for you. Mark Guzdial |
| Yup! Thanks for whoever answered that! Mark Guzdial |
| Nope. Mark Guzdial |
| YAY, KRISTA! Mark Guzdial |
| What error did you get? Mark Guzdial |
| Sebastian will change the mediaPath, but you should setMediaPath at the beginning of your main() method. Mark Guzdial |
| You don't HAVE to compose methods. How about something like this? Mark Guzdial |
Picture p3 = ...; p3.posterize(); // returns void, just changes p3 Picture p4 = p3.scale(0.5); // p4 is now p3, posterized and scaled.