Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

Looking for the book? They have it at the Engineer's Bookstore at 748 Marietta St NW. Here is there website: http://www.engrbookstore.com/ - Monica

Hotspots: Slides and CodeTA CornerComments?AnnouncementsFAQStatic Webspace
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Midterm Exam 1 Review Fall 2005: Which does which


I think the answer is #2. D Only....anyone agree?
Why do you think that one is correct? -poof #10


Actually....I think it might be C & D. They both specify something to the effect of: hey, if a blue pixel is greater than 100, make it nada. I don't really understand what the "distance" command in C does exactly though.

ok. So I figured out what distance does, so what is the significance of this distance between colors for the sake of this code?

Exactly. The functions that implement "distance" are not the correct answer. -Blake O'Hare

I don't understand choice "C". Is it moving the blue from the picture?

C removes the blue from all pixels that have a color value that's close to 0, 0, 100. -Blake O'Hare

Oh, ok. I get it. So in C, if the distance between the color of the pixel and blue is greater than 100, then it is setting the the blue in the pixel to 0? So that means that C also removes blue from the picture right? So it appears that the best answer is both "C" and "D."

What if the pixel is close to pure red (255,0,1)? C would clear the blue from that whereas D wouldn't. -Blake O'Hare

C is not contingent on whether the blue value is over 100, right? So it can't be C? C just pertains to distance in a relative sense and while for some values it would eliminate blue over 100, it would not for all. Maybe?

Yes. The answer is D only. -Blake O'Hare

Yes! I was right on first instinct! Thanks for your help.

No prob. -Blake O'Hare



Link to this Page