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, 22.06.2019 21:30
This graph compares the total cost of attending educational institutions in texas. the graph demonstrates that the cost at private and public technical schools greatly varies.
Answers: 2
question
Computers and Technology, 24.06.2019 21:30
How is a wan different than a lan? both connect computers, but only wan users don’t need the same operating system. both are peer-to-peer networks, but only a wan requires networking hardware. both network computers, but only a wan can cover larger geographical ranges. both connect computers to the internet, but only wan connects to the cloud.
Answers: 1
question
Computers and Technology, 25.06.2019 04:00
Use the wrap text icon to modify which graphic appears in the front of layered images modify the picture effects change the way text is wrapped around an object apply wordart to the text
Answers: 1
question
Computers and Technology, 25.06.2019 07:30
What does the hard disk drive do? it stores all of the information on a computer. it controls a computer’s operating system. it enables visual interaction with a computer. it contains all of a computer’s internal parts.
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
question
Biology, 28.09.2019 18:30
question
Mathematics, 28.09.2019 18:30
question
Mathematics, 28.09.2019 18:30
Questions on the website: 13722363