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 PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Fall 2007 Test 1 Review: Which does which

Post questions here.
Is four the right answer?
i got 4 also but is 2 maybe the right answer?
it's 2. D only
I'm pretty sure it's D. A makes a blue square from (1,1) to (99,99). Instead of clearing the blue values, B sets all the existing positive values to 100. C clears the blue values of pixels that are within a certain distance of pixels that are already valued at B=100. Alex Young
I got 4 because I am pretty sure D is correct, and C looks like it is just a much more wordy version of D. C confuses me.
When I test both C and D in JES, they produce similar results. But something tells me C is not correct, since the book says the 'distance' function takes into account of the red and green values as well. Am I right?
What does 'distance' do?
Finds the distance between two colors. Thanks! Brittany Duncan
So C is incorrect?
The function in C checks to see how different the color of the pixel is from the "true blue" color, i.e. from (0, 0, 255), and takes action if that difference is greater than 100. The distance between two colors is not the same as the value of one of the colors, and the problem asks you to consider the case where the value of the blue is greater than 100. Joshua Cuneo




Link to this Page