The end-result pixels are pretty dull in the bright pixel tracing example. Use the makeLighter function to brighten up the pixels that you copy across.

Note: A one line addition is all that’s required for this.


```
def brightCombine(fromDir ,target):
fileList = allFiles(fromDir)
fromPictFile = firstFile(fileList)
fromPict = makePicture(fromDir+fromPictFile)
for toPictFile in restFiles(fileList):
printNow(toPictFile)
# Copy all the high luminance colors from fromPict to toPict
toPict = makePicture(fromDir+toPictFile)
for p in getPixels(fromPict):
if brightPixel(p):
c = getColor(p)
c = makeLighter(c)
setColor(getPixel(toPict ,getX(p),getY(p)),c)
writePictureTo(toPict ,target+toPictFile)
fromPict = toPict
```

Computer Science & Information Technology

You might also like to view...

The practice used by the British government to order searches that was so widely despised by our forefathers was called __________________.

a. Writ of Assistance b. General Warrant c. Forfeiture of Domain d. Access Demand

Computer Science & Information Technology

Consider the following relations for a database that keeps track of business trips of salespersons in a sales office:

SALESPERSON (SSN, Name, Start_Year, Dept_No) TRIP (SSN, From_City, To_City, Departure_Date, Return_Date, Trip_ID) EXPENSE (Trip_ID, Account#, Amount) Specify the foreign keys for this schema, stating any assumptions you make.

Computer Science & Information Technology

A better port for video than VGA is a

A) DVI port B) USB port C) DIN port D) S/PDIF port

Computer Science & Information Technology

A written contract isn't necessary when a friend recommends a client.

a. true b. false

Computer Science & Information Technology