51.1k views
3 votes
C programming Computers represent color by combining the sub-colors red, green, and blue (rgb). Each sub-color's value can range from 0 to 255. Thus (255, 0, 0) is bright red, (130, 0, 130) is a medium purple, (0, 0, 0) is black, (255, 255, 255) is white, and (40, 40, 40) is a dark gray. (130, 50, 130) is a faded purple, due to the (50, 50, 50) gray part. (In other words, equal amounts of red, green, blue yield gray).

Given values for red, green, and blue, remove the gray part.

User Mike LP
by
7.3k points

2 Answers

7 votes
Green goes blue red goes gray
User KindOfGuy
by
7.5k points
6 votes

Answer:

Read Below

Step-by-step explanation:

In C programming, computers represent color by combining the sub-colors red, green, and blue (rgb), where each sub-color's value can range from 0 to 255. For example, (255, 0, 0) represents bright red, (130, 0, 130) represents a medium purple, (0, 0, 0) represents black, (255, 255, 255) represents white, and (40, 40, 40) represents a dark gray. When equal amounts of red, green, and blue are combined, they yield gray. Thus, (130, 50, 130) represents a faded purple, due to the (50, 50, 50) gray part.

User James Carnegie
by
8.0k points