9.5. Increasing and decreasing brightnessΒΆ

We can change one color channel (red/green/blue) at a time, or we can change all three. If we increase the value of all colors, we make the image get brighter. If we decrease all the colors, we make the image darker.

This program uses step five to increase each color value by 50% (1.5 times its original value.)

Try decreasing each color channel by 50% (0.5 times its original value) - you should end up with a darker version of the same picture.

If we ant to make the image both brighter and more red, we could increase just the red value. However, if we want it to look more red, but get brighter overall, we would want to make a small increase to the red value and a decrease to the blue and green values.

Arrange and indent the blocks below to make a recipe that would make the image more red but not increase the overall brightness much. You should modify the red value before you modify the green & blue (that would not matter in a real program, but here you need to have them in that order.)

You have attempted of activities on this page