Write a general “blue-ify” function. Write a function that accepts a picture as input, then doubles the blue value of every pixel and cut the red and green values in half.

What will be an ideal response?


```
def blueify2(picture):
for pix in getPixels(picture):
valueB = getBlue(pix)*2
valueR = getRed(pix)/2
valueG = getGreen(pix)/2
setColor(pix,makeColor(valueR,valueG,valueB))
```

Computer Science & Information Technology

You might also like to view...

A management information system (MIS) is exactly the same as a transaction processing system (TPS); the two terms can be used interchangeably.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Which memory packaging is most commonly used for today's workstation memory modules?

A) SO-DIMM B) RIMM C) DIMM D) microDIMM E) SDIMM

Computer Science & Information Technology

A ____ is a path of nonzero length from a vertex u to u with no repeated edges.

A. cycle B. unit of work C. circuit D. transit

Computer Science & Information Technology

Which term refers to a technology that is great for doing risky (or even not-so-risky) maintenance with a safety net?

A. Bare metal hypervisor B. Snapshot C. Cloud computing D. Cluster

Computer Science & Information Technology