** Function name: getComplementaryColor2 ** Description: Get simple complementary color in RGB565 format ***************************************************************************************/
| 1530 | ** Description: Get simple complementary color in RGB565 format |
| 1531 | ***************************************************************************************/ |
| 1532 | uint16_t getComplementaryColor2(uint16_t color) { |
| 1533 | int r = 31 - ((color >> 11) & 0x1F); |
| 1534 | int g = 63 - ((color >> 5) & 0x3F); |
| 1535 | int b = 31 - (color & 0x1F); |
| 1536 | return (r << 11) | (g << 5) | b; |
| 1537 | } |
| 1538 | /*************************************************************************************** |
| 1539 | ** Function name: getComplementaryColor |
| 1540 | ** Description: Get complementary color in RGB565 format |
no outgoing calls
no test coverage detected