# Calculating Colors

## Red, Green, and Blue

Bits are just bits—1s and 0s. Without instructions for encoding or abstracting the bits, they have no meaning. Think about this: What would happen if an image encoded in RGB format were read as BGR (blue-green-red) format instead? Assuming that all other aspects are the same, blue and red in the image would be reversed, resulting in some alternate color schemes for the image. Although this is a trivial example, it is important to realize that these standards for encoding give meaning to the sea of bits floating around your computer and the Internet.

## Instructions

In this experiment, you will manipulate colors by altering their binary representations with this Color Calculator tool.

## Exercise

1) Enter the following values as RGB values into the Color Calculator. What color is generated?

Red Green Blue
01110111 11001101 00011110
1. Purple
2. Green
3. Pink
4. Brown

2) Notice that the largest value is the Green sequence. How does that affect the color?

You may experiment with the Color Calculator.

Red Green Blue
01110111 11001101 00011110
1. It makes the color green.
2. It makes green the most dominant tint to the color.
3. Red and blue dominate the green.
4. It makes it less green; higher numbers are less intense.

3) Zero out the Red and Blue sequences. How does that affect the color? Select two answers.

You may experiment with the Color Calculator.

Red Green Blue
00000000 11001101 00000000
1. The color gets brighter.
2. The color gets darker.
3. The color get more green.
4. Nothing changes.

4) Copy the Green value to the Blue value. Leave the Red at zero. What color best describes the result?

You may experiment with the Color Calculator.

Red Green Blue
00000000 11001101 11001101
1. Yellow
2. Pink
3. Orange
4. Teal