Computers and Technology

In 16 bit gaming devices a color is represented by an unsigned 16 bit value that holds the gradients of red, green, and blue. each of these gradients is a 5 bit value. red is stored in the least significant 5 bits, green in the next least significant, and then blue. the last bit is unused. given the function header below, write a function that accepts the values of red, green, and blue, and returns the color as a single 16 bit value. you may only use the bitwise operators to calculate the result, & , |, ^, ~, < < , > > and the derivative compound assignment operators, |=, & =. assume an unsigned short is 16 bits.

answer
Answers: 1

Similar questions

Do you know the correct answer?
In 16 bit gaming devices a color is represented by an unsigned 16 bit value that holds the gradients...

Questions in other subjects:

Konu
Mathematics, 27.01.2020 18:31
Konu
Mathematics, 27.01.2020 18:31