asked 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.

asked
User Mike LP
by
8.1k points

2 Answers

7 votes
Green goes blue red goes gray
answered
User KindOfGuy
by
8.4k 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.

answered
User James Carnegie
by
8.5k points