Question: // Write a function to combine three 8-bit numbers r,g,b into a single color value // the number should be rrrrrrrrggggggggbbbbbbbb where b is low
// Write a function to combine three 8-bit numbers r,g,b into a single color value
// the number should be rrrrrrrrggggggggbbbbbbbb where b is low order bits
uint32_t color(uint32_t r, uint32_t g, uint32_t b) {
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
