127k views
21 votes
Please help me for this question - Computer Science

Please help me for this question - Computer Science-example-1

1 Answer

7 votes

Answer:

# F F F F 0 0

# F F 0 0 F F

# 0 0 F F F F

Step-by-step explanation:

Hex values are your friend.

The first two digits represent red.

# F F 0 0 0 0 - Red

The second two digits represent green.

# 0 0 F F 0 0 - Green

The third two digits represent blue.

# 0 0 0 0 F F - Blue

If you know yellow is a combination of red and green, you express the corresponding digits.

# F F 0 0 0 0 - Red

# 0 0 F F 0 0 - Green

+

-------------------------------

# F F F F 0 0 - Yellow

Similarly,

If you know magenta is a combination of red and blue, you express the corresponding hex digits.

# F F 0 0 0 0 - Red

# 0 0 0 0 F F - Blue

+

-----------------------------

# F F 0 0 F F - Magenta

And finally,

If you know cyan is a combination of green and blue, you express the corresponding hex digits.

# 0 0 F F 0 0 - Green

# 0 0 0 0 F F - Blue

+

----------------------------

# 0 0 F F F F - Cyan

What does it mean to "express the digits"?

If you know anything about how color works on a computer, you'll know that you can express a certain amount of red, green and blue to get almost any color. These are known as "RGB" values. In RGB, the red, green or blue can individually go from 0 - 255. Think of it like a slider for how much you want of each color.

In RGB:

RGB (255, 255, 255) - White

Hex is just a really convenient and shorthand way to write the RGB color values.

In Hex:

#FFFFFF - White

User Gokublack
by
4.8k points