The black in the function copyHorseFaceSmallBlack doesn’t look great on that horse. Would red look better? Try it.
What will be an ideal response?
```
def copyHorseFaceSmallRed ():
hcol = makeColor (216 ,169 ,143)
# Set up the source and target pictures
src = makePicture("horse.jpg")
canvas = makeEmptyPicture (163 ,308)
# Now , do the actual copying
targetX = 0
for sourceX in range(104,267):
targetY = 0
for sourceY in range (114 ,422):
color = getColor(getPixel(src,sourceX,sourceY))
if distance(color ,hcol) < 40:
setColor(getPixel(canvas ,targetX ,targetY), red)
else:
setColor(getPixel(canvas ,targetX ,targetY), color)
targetY = targetY + 1
targetX = targetX + 1
show(canvas)
return canvas
```
You might also like to view...
Data ___________ language allows you to configure the logical security in the database.
Fill in the blank(s) with the appropriate word(s).
Which is not a good guideline to use when choosing questionnaire language?
A) Avoid bias in wording. B) Do not use low-level language choices. C) Keep questions general rather than specific. D) Keep questions short. E) Use respondents' language whenever possible.
Which feedback is needed to let the user know that the computer is unable to complete a request?
A) explaining a delay in processing B) acknowledging that a request is completed C) notifying that a request was not completed D) offering the user more detailed feedback
A ________generally appears at the bottom of slides in a presentation or at the bottom of pages in a handout or on a notes page
A) placeholder B) footer C) footnote D) footing