![]() ![]() |
| |||||||||
| Hotspots: Slides and Code TA Corner Comments? Announcements FAQ Static Webspace | ||||||||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| 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 |
| Finds the distance between two colors. Thanks! Brittany Duncan |
| 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 |