subject

Write a darken_filter and change_picture function that modifies the pixels in the left half of the image to be darker. You can darken a pixel by subtracting the same value from each of the red, green, and blue values of the pixel.

for every pixel in the left half of the image
set pixel red to be (red - DARKENING_FACTOR)
set pixel green to be (green - DARKENING_FACTOR)
set pixel blue to be (blue - DARKENING_FACTOR)

(PYTHON)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:30
Quick pl which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. a company wants to use online methods to target more customers. it decides to conduct a market research by collecting the data of a few customers with their consent. they want to track data of the sites that their customers frequently visit. which software can the company? a. spyware b. bots c. adware d. trojan horse e. rootkits
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Visually impaired individuals generally rely on the for navigation. thus, designers need to ensure that mouse-specific inputs, such as pointing, clicking, and hovering, can be done without a mouse.
Answers: 1
question
Computers and Technology, 23.06.2019 15:10
What role did women fill during world war ii?
Answers: 1
You know the right answer?
Write a darken_filter and change_picture function that modifies the pixels in the left half of the i...
Questions
Questions on the website: 13722363