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...

In digital devices, audio or video data is represented by a series of 0s and 1s

Indicate whether the statement is true or false

Computer Science & Information Technology

In the function =IF(E5

A) Value_if_true. B) Modifier. C) Logical_test. D) Value_if_false.

Computer Science & Information Technology